mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Merge pull request #2889 from lioncash/interp
Interpreter: Use std::isnan instead of IsNAN
This commit is contained in:
@ -56,19 +56,6 @@ union IntFloat {
|
||||
explicit IntFloat(float _f) : f(_f) {}
|
||||
};
|
||||
|
||||
inline bool IsINF(double d)
|
||||
{
|
||||
IntDouble x(d);
|
||||
return (x.i & ~DOUBLE_SIGN) == DOUBLE_EXP;
|
||||
}
|
||||
|
||||
inline bool IsNAN(double d)
|
||||
{
|
||||
IntDouble x(d);
|
||||
return ((x.i & DOUBLE_EXP) == DOUBLE_EXP) &&
|
||||
((x.i & DOUBLE_FRAC) != DOUBLE_ZERO);
|
||||
}
|
||||
|
||||
inline bool IsQNAN(double d)
|
||||
{
|
||||
IntDouble x(d);
|
||||
|
@ -22,7 +22,7 @@ void Interpreter::Helper_FloatCompareOrdered(UGeckoInstruction _inst, double fa,
|
||||
{
|
||||
int compareResult;
|
||||
|
||||
if (IsNAN(fa) || IsNAN(fb))
|
||||
if (std::isnan(fa) || std::isnan(fb))
|
||||
{
|
||||
FPSCR.FX = 1;
|
||||
compareResult = FPCC::FU;
|
||||
@ -62,7 +62,7 @@ void Interpreter::Helper_FloatCompareUnordered(UGeckoInstruction _inst, double f
|
||||
{
|
||||
int compareResult;
|
||||
|
||||
if (IsNAN(fa) || IsNAN(fb))
|
||||
if (std::isnan(fa) || std::isnan(fb))
|
||||
{
|
||||
compareResult = FPCC::FU;
|
||||
|
||||
|
Reference in New Issue
Block a user