From 221d396b3acb9e0d1a815cbf7613a9f7032cc14a Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Sun, 17 Aug 2025 11:24:38 -0400 Subject: [PATCH] FloatUtils: Replace quieting SNaNs via `0.0 + x` with MakeQuiet --- Source/Core/Common/FloatUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/FloatUtils.cpp b/Source/Core/Common/FloatUtils.cpp index a671eb278c..312d4a88a2 100644 --- a/Source/Core/Common/FloatUtils.cpp +++ b/Source/Core/Common/FloatUtils.cpp @@ -108,7 +108,7 @@ double ApproximateReciprocalSquareRoot(double val) return 0.0; } - return 0.0 + val; + return MakeQuiet(val); } // Negative numbers return NaN @@ -165,7 +165,7 @@ double ApproximateReciprocal(double val) { if (mantissa == 0) return std::copysign(0.0, val); - return 0.0 + val; + return MakeQuiet(val); } // Special case small inputs