git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5206 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1 2010-03-17 10:13:58 +00:00
parent 4e9be9aa59
commit fa9ae47d02
1 changed files with 24 additions and 2 deletions

View File

@ -39,6 +39,28 @@ static int temp32;
#ifdef __APPLE__ && _M_X64 #ifdef __APPLE__ && _M_X64
void CommonAsmRoutines::GenFifoWrite(int size)
{
// Assume value in ABI_PARAM1
PUSH(ESI);
if (size != 32)
PUSH(EDX);
BSWAP(size, ABI_PARAM1);
MOV(32, R(EAX), Imm32((u32)(u64)GPFifo::m_gatherPipe));
MOV(32, R(ESI), M(&GPFifo::m_gatherPipeCount));
if (size != 32) {
MOV(32, R(EDX), R(ABI_PARAM1));
MOV(size, MComplex(RAX, RSI, 1, 0), R(EDX));
} else {
MOV(size, MComplex(RAX, RSI, 1, 0), R(ABI_PARAM1));
}
ADD(32, R(ESI), Imm8(size >> 3));
MOV(32, M(&GPFifo::m_gatherPipeCount), R(ESI));
if (size != 32)
POP(EDX);
POP(ESI);
RET();
}
void CommonAsmRoutines::GenFifoFloatWrite() void CommonAsmRoutines::GenFifoFloatWrite()
{ {
// Assume value in XMM0 // Assume value in XMM0
@ -92,7 +114,6 @@ void CommonAsmRoutines::GenFifoWrite(int size)
POP(ESI); POP(ESI);
RET(); RET();
} }
void CommonAsmRoutines::GenFifoFloatWrite() void CommonAsmRoutines::GenFifoFloatWrite()
{ {
// Assume value in XMM0 // Assume value in XMM0
@ -110,7 +131,6 @@ void CommonAsmRoutines::GenFifoFloatWrite()
POP(ESI); POP(ESI);
RET(); RET();
} }
#endif
void CommonAsmRoutines::GenFifoXmm64Write() void CommonAsmRoutines::GenFifoXmm64Write()
{ {
// Assume value in XMM0. Assume pre-byteswapped (unlike the others here!) // Assume value in XMM0. Assume pre-byteswapped (unlike the others here!)
@ -123,6 +143,8 @@ void CommonAsmRoutines::GenFifoXmm64Write()
POP(ESI); POP(ESI);
RET(); RET();
} }
#endif
// Safe + Fast Quantizers, originally from JITIL by magumagu // Safe + Fast Quantizers, originally from JITIL by magumagu