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.Lock(b, d);
|
||||||
fpr.BindToRegister(d);
|
fpr.BindToRegister(d);
|
||||||
MOVAPD(XMM0, fpr.R(b));
|
MOVAPD(XMM0, fpr.R(b));
|
||||||
CALL((void *)asm_routines.frsqrte);
|
CALL(asm_routines.frsqrte);
|
||||||
MOVSD(fpr.R(d), XMM0);
|
MOVSD(fpr.R(d), XMM0);
|
||||||
SetFPRFIfNeeded(fpr.RX(d));
|
SetFPRFIfNeeded(fpr.RX(d));
|
||||||
fpr.UnlockAll();
|
fpr.UnlockAll();
|
||||||
|
@ -652,7 +652,7 @@ void Jit64::fresx(UGeckoInstruction inst)
|
||||||
fpr.Lock(b, d);
|
fpr.Lock(b, d);
|
||||||
fpr.BindToRegister(d);
|
fpr.BindToRegister(d);
|
||||||
MOVAPD(XMM0, fpr.R(b));
|
MOVAPD(XMM0, fpr.R(b));
|
||||||
CALL((void *)asm_routines.fres);
|
CALL(asm_routines.fres);
|
||||||
MOVSD(fpr.R(d), XMM0);
|
MOVSD(fpr.R(d), XMM0);
|
||||||
SetFPRFIfNeeded(fpr.RX(d));
|
SetFPRFIfNeeded(fpr.RX(d));
|
||||||
fpr.UnlockAll();
|
fpr.UnlockAll();
|
||||||
|
|
|
@ -154,11 +154,11 @@ void Jit64::ps_rsqrte(UGeckoInstruction inst)
|
||||||
fpr.BindToRegister(d, false);
|
fpr.BindToRegister(d, false);
|
||||||
|
|
||||||
MOVSD(XMM0, fpr.R(b));
|
MOVSD(XMM0, fpr.R(b));
|
||||||
CALL((void *)asm_routines.frsqrte);
|
CALL(asm_routines.frsqrte);
|
||||||
MOVSD(fpr.R(d), XMM0);
|
MOVSD(fpr.R(d), XMM0);
|
||||||
|
|
||||||
MOVHLPS(XMM0, fpr.RX(b));
|
MOVHLPS(XMM0, fpr.RX(b));
|
||||||
CALL((void *)asm_routines.frsqrte);
|
CALL(asm_routines.frsqrte);
|
||||||
MOVLHPS(fpr.RX(d), XMM0);
|
MOVLHPS(fpr.RX(d), XMM0);
|
||||||
|
|
||||||
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
||||||
|
@ -181,11 +181,11 @@ void Jit64::ps_res(UGeckoInstruction inst)
|
||||||
fpr.BindToRegister(d, false);
|
fpr.BindToRegister(d, false);
|
||||||
|
|
||||||
MOVSD(XMM0, fpr.R(b));
|
MOVSD(XMM0, fpr.R(b));
|
||||||
CALL((void *)asm_routines.fres);
|
CALL(asm_routines.fres);
|
||||||
MOVSD(fpr.R(d), XMM0);
|
MOVSD(fpr.R(d), XMM0);
|
||||||
|
|
||||||
MOVHLPS(XMM0, fpr.RX(b));
|
MOVHLPS(XMM0, fpr.RX(b));
|
||||||
CALL((void *)asm_routines.fres);
|
CALL(asm_routines.fres);
|
||||||
MOVLHPS(fpr.RX(d), XMM0);
|
MOVLHPS(fpr.RX(d), XMM0);
|
||||||
|
|
||||||
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
||||||
|
|
|
@ -408,7 +408,7 @@ void Jit64::mfcr(UGeckoInstruction inst)
|
||||||
JITDISABLE(bJITSystemRegistersOff);
|
JITDISABLE(bJITSystemRegistersOff);
|
||||||
int d = inst.RD;
|
int d = inst.RD;
|
||||||
gpr.FlushLockX(RSCRATCH_EXTRA);
|
gpr.FlushLockX(RSCRATCH_EXTRA);
|
||||||
CALL((void *)asm_routines.mfcr);
|
CALL(asm_routines.mfcr);
|
||||||
gpr.Lock(d);
|
gpr.Lock(d);
|
||||||
gpr.BindToRegister(d, false, true);
|
gpr.BindToRegister(d, false, true);
|
||||||
MOV(32, gpr.R(d), R(RSCRATCH));
|
MOV(32, gpr.R(d), R(RSCRATCH));
|
||||||
|
|
|
@ -453,16 +453,16 @@ void EmuCodeBlock::UnsafeWriteGatherPipe(int accessSize)
|
||||||
switch (accessSize)
|
switch (accessSize)
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite8);
|
CALL(jit->GetAsmRoutines()->fifoDirectWrite8);
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite16);
|
CALL(jit->GetAsmRoutines()->fifoDirectWrite16);
|
||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite32);
|
CALL(jit->GetAsmRoutines()->fifoDirectWrite32);
|
||||||
break;
|
break;
|
||||||
case 64:
|
case 64:
|
||||||
CALL((void *)jit->GetAsmRoutines()->fifoDirectWrite64);
|
CALL(jit->GetAsmRoutines()->fifoDirectWrite64);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
jit->js.fifoBytesThisBlock += accessSize >> 3;
|
jit->js.fifoBytesThisBlock += accessSize >> 3;
|
||||||
|
|
Loading…
Reference in New Issue