diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index 22ad26e97b..9b31a9acd5 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -191,7 +191,7 @@ private: float MathFloatVectorSum(const std::vector&); // Rounds down. 0 -> undefined -inline int IntLog2(u64 val) +constexpr int IntLog2(u64 val) { return 63 - Common::CountLeadingZeros(val); }