From c448c2becb66a666832fe5645a0ba25800261e89 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 7 Sep 2016 19:27:38 +0200 Subject: [PATCH] mtvu: use function instead of macro --- pcsx2/MTVU.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/MTVU.cpp b/pcsx2/MTVU.cpp index c270656864..d19533c1dc 100644 --- a/pcsx2/MTVU.cpp +++ b/pcsx2/MTVU.cpp @@ -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