interp: Potential linker buildfix.

Just in case it's thinking there's a definition to link, should use static.
This commit is contained in:
Unknown W. Brackets 2023-06-04 19:23:16 -07:00 committed by GitHub
parent 688042c036
commit f54f5581cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,17 +203,17 @@ enum MatrixOverlapType {
MatrixOverlapType GetMatrixOverlap(int m1, int m2, MatrixSize msize);
// Returns a number from 0-7, good for checking overlap for 4x4 matrices.
inline int GetMtx(int matrixReg) {
static inline int GetMtx(int matrixReg) {
return (matrixReg >> 2) & 7;
}
inline VectorSize GetVecSize(MIPSOpcode op) {
static inline VectorSize GetVecSize(MIPSOpcode op) {
int a = (op >> 7) & 1;
int b = (op >> 14) & 2;
return (VectorSize)(a + b + 1); // Safe, there are no other possibilities
}
inline MatrixSize GetMtxSize(MIPSOpcode op) {
static inline MatrixSize GetMtxSize(MIPSOpcode op) {
int a = (op >> 7) & 1;
int b = (op >> 14) & 2;
return (MatrixSize)(a + b + 1); // Safe, there are no other possibilities
@ -226,7 +226,7 @@ VectorSize GetDoubleVectorSize(VectorSize sz);
VectorSize MatrixVectorSizeSafe(MatrixSize sz);
VectorSize MatrixVectorSize(MatrixSize sz);
inline int GetNumVectorElements(VectorSize sz) {
static inline int GetNumVectorElements(VectorSize sz) {
switch (sz) {
case V_Single: return 1;
case V_Pair: return 2;
@ -240,13 +240,13 @@ int GetMatrixSideSafe(MatrixSize sz);
int GetMatrixSide(MatrixSize sz);
std::string GetVectorNotation(int reg, VectorSize size);
std::string GetMatrixNotation(int reg, MatrixSize size);
inline bool IsMatrixTransposed(int matrixReg) {
static inline bool IsMatrixTransposed(int matrixReg) {
return (matrixReg >> 5) & 1;
}
inline bool IsVectorColumn(int vectorReg) {
static inline bool IsVectorColumn(int vectorReg) {
return !((vectorReg >> 5) & 1);
}
inline int TransposeMatrixReg(int matrixReg) {
static inline int TransposeMatrixReg(int matrixReg) {
return matrixReg ^ 0x20;
}
int GetVectorOverlap(int reg1, VectorSize size1, int reg2, VectorSize size2);