mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Common/MathUtil: Move IntLog2 into MathUtil namespace
Gets this out of the global namespace.
This commit is contained in:
@ -185,10 +185,9 @@ private:
|
||||
T m_variance{};
|
||||
};
|
||||
|
||||
} // namespace MathUtil
|
||||
|
||||
// Rounds down. 0 -> undefined
|
||||
constexpr int IntLog2(u64 val)
|
||||
{
|
||||
return 63 - std::countl_zero(val);
|
||||
}
|
||||
} // namespace MathUtil
|
||||
|
Reference in New Issue
Block a user