Merge pull request #9868 from leoetlino/constexpr-intlog2

MathUtil: Mark IntLog2 as constexpr
This commit is contained in:
JosJuice 2021-07-06 15:29:28 +02:00 committed by GitHub
commit 02309bd0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}