mirror of https://github.com/PCSX2/pcsx2.git
mtvu: use function instead of macro
This commit is contained in:
parent
d39f17bda3
commit
c448c2becb
pcsx2
|
@ -21,10 +21,12 @@
|
||||||
|
|
||||||
__aligned16 VU_Thread vu1Thread(CpuVU1, VU1);
|
__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_ALWAYS_KICK 0
|
||||||
#define MTVU_SYNC_MODE 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 {
|
enum MTVU_EVENT {
|
||||||
MTVU_VU_EXECUTE, // Execute VU program
|
MTVU_VU_EXECUTE, // Execute VU program
|
||||||
MTVU_VU_WRITE_MICRO, // Write to VU micro-mem
|
MTVU_VU_WRITE_MICRO, // Write to VU micro-mem
|
||||||
|
|
Loading…
Reference in New Issue