mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 17:46:48 +01:00
Jit64AsmCommon: Micro-optimize GenFrsqrte
Save 2 bytes by testing register against itself and branching on the sign flag. Before: 0: 48 0f ba e0 3f bt rax,0x3f After: 0: 48 85 c0 test rax,rax
This commit is contained in:
parent
5b5886160e
commit
e9d4869965
@ -101,8 +101,8 @@ void CommonAsmRoutines::GenFrsqrte()
|
|||||||
MOVQ_xmm(XMM0, R(RSCRATCH));
|
MOVQ_xmm(XMM0, R(RSCRATCH));
|
||||||
RET();
|
RET();
|
||||||
SetJumpTarget(inf);
|
SetJumpTarget(inf);
|
||||||
BT(64, R(RSCRATCH), Imm8(63));
|
TEST(64, R(RSCRATCH), R(RSCRATCH));
|
||||||
FixupBranch negative = J_CC(CC_C);
|
FixupBranch negative = J_CC(CC_S);
|
||||||
XORPD(XMM0, R(XMM0));
|
XORPD(XMM0, R(XMM0));
|
||||||
RET();
|
RET();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user