Merge pull request #485 from magumagu/packed-fp-reciprocal

Interpreter: return single-precision results for ps_rsqrte.
This commit is contained in:
Tony Wasserka 2014-06-19 16:51:33 +02:00
commit 9f22b2378d
1 changed files with 2 additions and 2 deletions

View File

@ -196,8 +196,8 @@ void Interpreter::ps_rsqrte(UGeckoInstruction _inst)
SetFPException(FPSCR_VXSQRT);
}
rPS0(_inst.FD) = ApproximateReciprocalSquareRoot(rPS0(_inst.FB));
rPS1(_inst.FD) = ApproximateReciprocalSquareRoot(rPS1(_inst.FB));
rPS0(_inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS0(_inst.FB)));
rPS1(_inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS1(_inst.FB)));
UpdateFPRF(rPS0(_inst.FD));
if (_inst.Rc) Helper_UpdateCR1();