From ad4ad7c1eded30d60f0cff81317c3a69061289a1 Mon Sep 17 00:00:00 2001 From: magumagu Date: Wed, 21 May 2014 21:29:43 -0700 Subject: [PATCH] Use accurate frsqrte in Interpreter. The implementation of frsqrte exposed by this change isn't completely correct; that will be fixed in a later commit. --- .../Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index e87472c87b..fbdaf7646a 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -419,7 +419,6 @@ void Interpreter::frsqrtex(UGeckoInstruction _inst) } else { -#ifdef VERY_ACCURATE_FP if (b == 0.0) { SetFPException(FPSCR_ZX); @@ -442,11 +441,6 @@ void Interpreter::frsqrtex(UGeckoInstruction _inst) outa |= frsqrtex_lut[idx] >> 12; riPS0(_inst.FD) = ((u64)outa << 32) + (u64)outb; } -#else - if (b == 0.0) - SetFPException(FPSCR_ZX); - rPS0(_inst.FD) = ForceDouble(1.0 / sqrt(b)); -#endif } UpdateFPRF(rPS0(_inst.FD)); if (_inst.Rc) Helper_UpdateCR1();