mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
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:
parent
ffdc8538a1
commit
b82b0683d5
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ private:
|
||||||
float MathFloatVectorSum(const std::vector<float>&);
|
float MathFloatVectorSum(const std::vector<float>&);
|
||||||
|
|
||||||
// Rounds down. 0 -> undefined
|
// Rounds down. 0 -> undefined
|
||||||
inline int IntLog2(u64 val)
|
constexpr int IntLog2(u64 val)
|
||||||
{
|
{
|
||||||
return 63 - Common::CountLeadingZeros(val);
|
return 63 - Common::CountLeadingZeros(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue