mirror of https://github.com/PCSX2/pcsx2.git
Linux: inline asm fixes.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@720 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
71e2dc2fb4
commit
ca4ce225a0
|
@ -44,16 +44,19 @@ struct SSE2_Tables
|
||||||
u16 BCb_coefficients[8];// offset 64
|
u16 BCb_coefficients[8];// offset 64
|
||||||
};
|
};
|
||||||
|
|
||||||
#define C_BIAS (-64)
|
enum
|
||||||
#define Y_BIAS (-48)
|
{
|
||||||
#define Y_MASK (-32)
|
C_BIAS = -0x40,
|
||||||
#define ROUND_1BIT (-16)
|
Y_BIAS = -0x30,
|
||||||
|
Y_MASK = -0x20,
|
||||||
|
ROUND_1BIT = -0x10,
|
||||||
|
|
||||||
#define Y_COEFF 0
|
Y_COEFF = 0x00,
|
||||||
#define GCr_COEFF 16
|
GCr_COEFF = 0x10,
|
||||||
#define GCb_COEFF 32
|
GCb_COEFF = 0x20,
|
||||||
#define RCr_COEFF 48
|
RCr_COEFF = 0x30,
|
||||||
#define BCb_COEFF 64
|
BCb_COEFF = 0x40
|
||||||
|
};
|
||||||
|
|
||||||
static PCSX2_ALIGNED16(const SSE2_Tables sse2_tables) =
|
static PCSX2_ALIGNED16(const SSE2_Tables sse2_tables) =
|
||||||
{
|
{
|
||||||
|
|
|
@ -195,7 +195,7 @@ __forceinline void FreezeXMMRegs_(int save)
|
||||||
"movaps [%0+0x50], xmm5\n"
|
"movaps [%0+0x50], xmm5\n"
|
||||||
"movaps [%0+0x60], xmm6\n"
|
"movaps [%0+0x60], xmm6\n"
|
||||||
"movaps [%0+0x70], xmm7\n"
|
"movaps [%0+0x70], xmm7\n"
|
||||||
".att_syntax\n" : : "r"(g_globalXMMData) );
|
".att_syntax\n" : : "r"(g_globalXMMData)
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
@ -237,7 +237,7 @@ __forceinline void FreezeXMMRegs_(int save)
|
||||||
"movaps xmm5, [%0+0x50]\n"
|
"movaps xmm5, [%0+0x50]\n"
|
||||||
"movaps xmm6, [%0+0x60]\n"
|
"movaps xmm6, [%0+0x60]\n"
|
||||||
"movaps xmm7, [%0+0x70]\n"
|
"movaps xmm7, [%0+0x70]\n"
|
||||||
".att_syntax\n" : : "r"(g_globalXMMData) );
|
".att_syntax\n" : : "r"(g_globalXMMData)
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
Loading…
Reference in New Issue