From 6df8343e72a916e5d91f362b8716be309236f025 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 12 Apr 2017 06:15:18 +0100 Subject: [PATCH] MathUtil: References can be const --- Source/Core/Common/MathUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/MathUtil.cpp b/Source/Core/Common/MathUtil.cpp index 75c7f0278a..0557c838b3 100644 --- a/Source/Core/Common/MathUtil.cpp +++ b/Source/Core/Common/MathUtil.cpp @@ -153,7 +153,7 @@ double ApproximateReciprocalSquareRoot(double val) int i = (int)(mantissa >> 37); vali = sign | exponent; int index = i / 2048 + (odd_exponent ? 16 : 0); - auto& entry = frsqrte_expected[index]; + const auto& entry = frsqrte_expected[index]; vali |= (s64)(entry.m_base - entry.m_dec * (i % 2048)) << 26; return valf; } @@ -211,7 +211,7 @@ double ApproximateReciprocal(double val) exponent = (0x7FDLL << 52) - exponent; int i = (int)(mantissa >> 37); - auto& entry = fres_expected[i / 1024]; + const auto& entry = fres_expected[i / 1024]; vali = sign | exponent; vali |= (s64)(entry.m_base - (entry.m_dec * (i % 1024) + 1) / 2) << 29; return valf;