[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 V0 = fpr.GetReg();
|
||||
|
||||
// XXX: Could be done quicker
|
||||
VABS(vD, vB);
|
||||
VMOV(V0, vD);
|
||||
VSUB(vD, vD, V0);
|
||||
VSUB(vD, vD, V0);
|
||||
VNEG(vD, vD);
|
||||
|
||||
fpr.Unlock(V0);
|
||||
if (inst.Rc) Helper_UpdateCR1(vD);
|
||||
|
|
|
@ -355,15 +355,10 @@ void JitArm::ps_nabs(UGeckoInstruction inst)
|
|||
ARMReg vD1 = fpr.R1(d, false);
|
||||
ARMReg V0 = fpr.GetReg();
|
||||
|
||||
// XXX: Could be done quicker
|
||||
VABS(vD0, vB0);
|
||||
VMOV(V0, vD0);
|
||||
VSUB(vD0, vD0, V0);
|
||||
VSUB(vD0, vD0, V0);
|
||||
VNEG(vD0, vD0);
|
||||
VABS(vD1, vB1);
|
||||
VMOV(V0, vD1);
|
||||
VSUB(vD1, vD1, V0);
|
||||
VSUB(vD1, vD1, V0);
|
||||
|
||||
VNEG(vD1, vD1);
|
||||
|
||||
fpr.Unlock(V0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue