Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Interpreter: use numeric_limits instead of FLT_MAX.
Minor cleanup, and fixes compilation on some systems.
  • Loading branch information
magumagu authored and neobrain committed May 24, 2014
1 parent cffa848 commit 440246a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h
Expand Up @@ -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<float>::max() :
std::numeric_limits<float>::max();
// Special case large inputs
if (exponent >= (1149LL << 52))
return sign ? -0.0f : 0.0f;
Expand Down

0 comments on commit 440246a

Please sign in to comment.