mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 23:48:58 +01:00
Merge pull request #10952 from JosJuice/bitutils-remove-unused
Common: Remove unused stuff from BitUtils.h
This commit is contained in:
commit
3595c8b295
@ -461,15 +461,4 @@ constexpr int CountTrailingZeros(uint32_t value)
|
||||
#endif
|
||||
}
|
||||
|
||||
#undef CONSTEXPR_FROM_INTRINSIC
|
||||
|
||||
template <typename T>
|
||||
constexpr T LargestPowerOf2Divisor(T value)
|
||||
{
|
||||
static_assert(std::is_unsigned<T>(),
|
||||
"LargestPowerOf2Divisor only makes sense for unsigned types.");
|
||||
|
||||
return value & -static_cast<std::make_signed_t<T>>(value);
|
||||
}
|
||||
|
||||
} // namespace Common
|
||||
|
Loading…
x
Reference in New Issue
Block a user