mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 09:39:58 +00:00
Interpreter: use numeric_limits instead of FLT_MAX.
Minor cleanup, and fixes compilation on some systems.
This commit is contained in:
parent
cffa848b99
commit
440246a190
@ -321,7 +321,8 @@ inline double ApproximateReciprocal(double val)
|
|||||||
}
|
}
|
||||||
// Special case small inputs
|
// Special case small inputs
|
||||||
if (exponent < (895LL << 52))
|
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
|
// Special case large inputs
|
||||||
if (exponent >= (1149LL << 52))
|
if (exponent >= (1149LL << 52))
|
||||||
return sign ? -0.0f : 0.0f;
|
return sign ? -0.0f : 0.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user