mtvu: use function instead of macro

This commit is contained in:
Gregory Hainaut 2016-09-07 19:27:38 +02:00
parent d39f17bda3
commit c448c2becb
1 changed files with 3 additions and 1 deletions

View File

@ -21,10 +21,12 @@
__aligned16 VU_Thread vu1Thread(CpuVU1, VU1);
#define size_u32(x) (((u32)x+3u)>>2) // Rounds up a size in bytes for size in u32's
#define MTVU_ALWAYS_KICK 0
#define MTVU_SYNC_MODE 0
// Rounds up a size in bytes for size in u32's
static __fi u32 size_u32(u32 x) { return (x + 3) >> 2; }
enum MTVU_EVENT {
MTVU_VU_EXECUTE, // Execute VU program
MTVU_VU_WRITE_MICRO, // Write to VU micro-mem