mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Jit64: drop needless casts
This commit is contained in:
parent
334c1bfdf6
commit
89954d658c
@ -633,7 +633,7 @@ void Jit64::frsqrtex(UGeckoInstruction inst)
|
||||
fpr.Lock(b, d);
|
||||
fpr.BindToRegister(d);
|
||||
MOVAPD(XMM0, fpr.R(b));
|
||||
CALL((void *)asm_routines.frsqrte);
|
||||
CALL(asm_routines.frsqrte);
|
||||
MOVSD(fpr.R(d), XMM0);
|
||||
SetFPRFIfNeeded(fpr.RX(d));
|
||||
fpr.UnlockAll();
|
||||
@ -652,7 +652,7 @@ void Jit64::fresx(UGeckoInstruction inst)
|
||||
fpr.Lock(b, d);
|
||||
fpr.BindToRegister(d);
|
||||
MOVAPD(XMM0, fpr.R(b));
|
||||
CALL((void *)asm_routines.fres);
|
||||
CALL(asm_routines.fres);
|
||||
MOVSD(fpr.R(d), XMM0);
|
||||
SetFPRFIfNeeded(fpr.RX(d));
|
||||
fpr.UnlockAll();
|
||||
|
@ -154,11 +154,11 @@ void Jit64::ps_rsqrte(UGeckoInstruction inst)
|
||||
fpr.BindToRegister(d, false);
|
||||
|
||||
MOVSD(XMM0, fpr.R(b));
|
||||
CALL((void *)asm_routines.frsqrte);
|
||||
CALL(asm_routines.frsqrte);
|
||||
MOVSD(fpr.R(d), XMM0);
|
||||
|
||||
MOVHLPS(XMM0, fpr.RX(b));
|
||||
CALL((void *)asm_routines.frsqrte);
|
||||
CALL(asm_routines.frsqrte);
|
||||
MOVLHPS(fpr.RX(d), XMM0);
|
||||
|
||||
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
||||
@ -181,11 +181,11 @@ void Jit64::ps_res(UGeckoInstruction inst)
|
||||
fpr.BindToRegister(d, false);
|
||||
|
||||
MOVSD(XMM0, fpr.R(b));
|
||||
CALL((void *)asm_routines.fres);
|
||||
CALL(asm_routines.fres);
|
||||
MOVSD(fpr.R(d), XMM0);
|
||||
|
||||
MOVHLPS(XMM0, fpr.RX(b));
|
||||
CALL((void *)asm_routines.fres);
|
||||
CALL(asm_routines.fres);
|
||||
MOVLHPS(fpr.RX(d), XMM0);
|
||||
|
||||
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
||||
|
@ -408,7 +408,7 @@ void Jit64::mfcr(UGeckoInstruction inst)
|
||||
JITDISABLE(bJITSystemRegistersOff);
|
||||
int d = inst.RD;
|
||||
gpr.FlushLockX(RSCRATCH_EXTRA);
|
||||
CALL((void *)asm_routines.mfcr);
|
||||
CALL(asm_routines.mfcr);
|
||||
gpr.Lock(d);
|
||||
gpr.BindToRegister(d, false, true);
|
||||
MOV(32, gpr.R(d), R(RSCRATCH));
|
||||
|
@ -453,16 +453,16 @@ void EmuCodeBlock::UnsafeWriteGatherPipe(int accessSize)
|
||||
switch (accessSize)
|
||||
{
|
||||
case 8:
|
||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite8);
|
||||
CALL(jit->GetAsmRoutines()->fifoDirectWrite8);
|
||||
break;
|
||||
case 16:
|
||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite16);
|
||||
CALL(jit->GetAsmRoutines()->fifoDirectWrite16);
|
||||
break;
|
||||
case 32:
|
||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite32);
|
||||
CALL(jit->GetAsmRoutines()->fifoDirectWrite32);
|
||||
break;
|
||||
case 64:
|
||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite64);
|
||||
CALL(jit->GetAsmRoutines()->fifoDirectWrite64);
|
||||
break;
|
||||
}
|
||||
jit->js.fifoBytesThisBlock += accessSize >> 3;
|
||||
|
Loading…
Reference in New Issue
Block a user