mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2026-04-27 20:21:40 +00:00
[Recompiler::Analyze] Implement frsqrte via <cmath>
This commit is contained in:
parent
c017eb630a
commit
fe28e0fffc
1 changed files with 5 additions and 0 deletions
|
|
@ -1000,6 +1000,11 @@ bool Recompiler::Recompile(
|
||||||
println("\t{}.f64 = sqrt({}.f64);", f(insn.operands[0]), f(insn.operands[1]));
|
println("\t{}.f64 = sqrt({}.f64);", f(insn.operands[0]), f(insn.operands[1]));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PPC_INST_FRSQRTE:
|
||||||
|
printSetFlushMode(false);
|
||||||
|
println("\t{}.f64 = 1.0 / sqrt({}.f64);", f(insn.operands[0]), f(insn.operands[1]));
|
||||||
|
break;
|
||||||
|
|
||||||
case PPC_INST_FSQRTS:
|
case PPC_INST_FSQRTS:
|
||||||
printSetFlushMode(false);
|
printSetFlushMode(false);
|
||||||
println("\t{}.f64 = double(float(sqrt({}.f64)));", f(insn.operands[0]), f(insn.operands[1]));
|
println("\t{}.f64 = double(float(sqrt({}.f64)));", f(insn.operands[0]), f(insn.operands[1]));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue