mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 23:41:19 +01:00
[ARM] Make fnabsx and ps_nabs quicker. Sleep deprivation got the better of me.
This commit is contained in:
parent
ef05a14757
commit
67c65831bc
@ -60,11 +60,8 @@ void JitArm::fnabsx(UGeckoInstruction inst)
|
|||||||
ARMReg vD = fpr.R0(inst.FD, false);
|
ARMReg vD = fpr.R0(inst.FD, false);
|
||||||
ARMReg V0 = fpr.GetReg();
|
ARMReg V0 = fpr.GetReg();
|
||||||
|
|
||||||
// XXX: Could be done quicker
|
|
||||||
VABS(vD, vB);
|
VABS(vD, vB);
|
||||||
VMOV(V0, vD);
|
VNEG(vD, vD);
|
||||||
VSUB(vD, vD, V0);
|
|
||||||
VSUB(vD, vD, V0);
|
|
||||||
|
|
||||||
fpr.Unlock(V0);
|
fpr.Unlock(V0);
|
||||||
if (inst.Rc) Helper_UpdateCR1(vD);
|
if (inst.Rc) Helper_UpdateCR1(vD);
|
||||||
|
@ -355,15 +355,10 @@ void JitArm::ps_nabs(UGeckoInstruction inst)
|
|||||||
ARMReg vD1 = fpr.R1(d, false);
|
ARMReg vD1 = fpr.R1(d, false);
|
||||||
ARMReg V0 = fpr.GetReg();
|
ARMReg V0 = fpr.GetReg();
|
||||||
|
|
||||||
// XXX: Could be done quicker
|
|
||||||
VABS(vD0, vB0);
|
VABS(vD0, vB0);
|
||||||
VMOV(V0, vD0);
|
VNEG(vD0, vD0);
|
||||||
VSUB(vD0, vD0, V0);
|
|
||||||
VSUB(vD0, vD0, V0);
|
|
||||||
VABS(vD1, vB1);
|
VABS(vD1, vB1);
|
||||||
VMOV(V0, vD1);
|
VNEG(vD1, vD1);
|
||||||
VSUB(vD1, vD1, V0);
|
|
||||||
VSUB(vD1, vD1, V0);
|
|
||||||
|
|
||||||
fpr.Unlock(V0);
|
fpr.Unlock(V0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user