From 440246a19059f54f4b88ce011095d24f7fb53f8b Mon Sep 17 00:00:00 2001 From: magumagu Date: Sat, 24 May 2014 01:52:45 -0700 Subject: [PATCH] Interpreter: use numeric_limits instead of FLT_MAX. Minor cleanup, and fixes compilation on some systems. --- Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h index 02684e4d7a..a506fc33bc 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h @@ -321,7 +321,8 @@ inline double ApproximateReciprocal(double val) } // Special case small inputs if (exponent < (895LL << 52)) - return sign ? -FLT_MAX : FLT_MAX; + return sign ? -std::numeric_limits::max() : + std::numeric_limits::max(); // Special case large inputs if (exponent >= (1149LL << 52)) return sign ? -0.0f : 0.0f;