Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Make fnabsx and ps_nabs quicker. Sleep deprivation got the bett…
…er of me.
  • Loading branch information
Sonicadvance1 committed Sep 7, 2013
1 parent ef05a14 commit 67c6583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Expand Up @@ -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);
Expand Down
11 changes: 3 additions & 8 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_Paired.cpp
Expand Up @@ -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);
}

0 comments on commit 67c6583

Please sign in to comment.