MathUtil: Mark IntLog2 as constexpr

Mostly everything else was already marked as constexpr, and the only
function IntLog2 calls (CountLeadingZeros) is already constexpr.
This commit is contained in:
Léo Lam 2021-07-06 15:01:38 +02:00
parent ffdc8538a1
commit b82b0683d5
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ private:
float MathFloatVectorSum(const std::vector<float>&);
// Rounds down. 0 -> undefined
inline int IntLog2(u64 val)
constexpr int IntLog2(u64 val)
{
return 63 - Common::CountLeadingZeros(val);
}