Linux: inline asm fixes.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@720 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-03-08 23:28:39 +00:00
parent 71e2dc2fb4
commit ca4ce225a0
2 changed files with 14 additions and 11 deletions

View File

@ -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) =
{

View File

@ -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