diff --git a/pcsx2/IPU/yuv2rgb.cpp b/pcsx2/IPU/yuv2rgb.cpp index c9131474e5..110931c3fd 100644 --- a/pcsx2/IPU/yuv2rgb.cpp +++ b/pcsx2/IPU/yuv2rgb.cpp @@ -44,16 +44,19 @@ struct SSE2_Tables u16 BCb_coefficients[8];// offset 64 }; -#define C_BIAS (-64) -#define Y_BIAS (-48) -#define Y_MASK (-32) -#define ROUND_1BIT (-16) +enum +{ + C_BIAS = -0x40, + Y_BIAS = -0x30, + Y_MASK = -0x20, + ROUND_1BIT = -0x10, -#define Y_COEFF 0 -#define GCr_COEFF 16 -#define GCb_COEFF 32 -#define RCr_COEFF 48 -#define BCb_COEFF 64 + Y_COEFF = 0x00, + GCr_COEFF = 0x10, + GCb_COEFF = 0x20, + RCr_COEFF = 0x30, + BCb_COEFF = 0x40 +}; static PCSX2_ALIGNED16(const SSE2_Tables sse2_tables) = { diff --git a/pcsx2/x86/ix86/ix86_tools.cpp b/pcsx2/x86/ix86/ix86_tools.cpp index daf7bc97d7..f2c5bde936 100644 --- a/pcsx2/x86/ix86/ix86_tools.cpp +++ b/pcsx2/x86/ix86/ix86_tools.cpp @@ -195,7 +195,7 @@ __forceinline void FreezeXMMRegs_(int save) "movaps [%0+0x50], xmm5\n" "movaps [%0+0x60], xmm6\n" "movaps [%0+0x70], xmm7\n" - ".att_syntax\n" : : "r"(g_globalXMMData) ); + ".att_syntax\n" : : "r"(g_globalXMMData) ); #endif // _MSC_VER @@ -237,7 +237,7 @@ __forceinline void FreezeXMMRegs_(int save) "movaps xmm5, [%0+0x50]\n" "movaps xmm6, [%0+0x60]\n" "movaps xmm7, [%0+0x70]\n" - ".att_syntax\n" : : "r"(g_globalXMMData) ); + ".att_syntax\n" : : "r"(g_globalXMMData) ); #endif // _MSC_VER