move inlines

This commit is contained in:
lepelog
2022-06-30 23:24:35 +02:00
parent a91d7c4539
commit 6347b98d03
60 changed files with 620 additions and 952 deletions
+7
View File
@@ -2,5 +2,12 @@
#define J3DGD_H
#include "dolphin/types.h"
#include "dolphin/gx/GX.h"
static inline void J3DFifoLoadIndx(u8 cmd, u16 indx, u16 addr) {
GFX_FIFO(u8) = cmd;
GFX_FIFO(u16) = indx;
GFX_FIFO(u16) = addr;
}
#endif /* J3DGD_H */
+5
View File
@@ -363,4 +363,9 @@ public:
/* 0x2D */ u8 mResMax;
};
// not sure where this belongs
static inline u32 COLOR_MULTI(u32 a, u32 b) {
return ((a * (b + 1)) * 0x10000) >> 24;
}
#endif /* JPAPARTICLE_H */