mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-23 16:39:43 +00:00
FloatUtils: Replace quieting SNaNs via 0.0 + x
with MakeQuiet
This commit is contained in:
parent
cfb78dc816
commit
221d396b3a
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ double ApproximateReciprocalSquareRoot(double val)
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0 + val;
|
return MakeQuiet(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Negative numbers return NaN
|
// Negative numbers return NaN
|
||||||
|
@ -165,7 +165,7 @@ double ApproximateReciprocal(double val)
|
||||||
{
|
{
|
||||||
if (mantissa == 0)
|
if (mantissa == 0)
|
||||||
return std::copysign(0.0, val);
|
return std::copysign(0.0, val);
|
||||||
return 0.0 + val;
|
return MakeQuiet(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special case small inputs
|
// Special case small inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue