mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
Common: Remove unused stuff from BitUtils.h
This commit is contained in:
parent
5508c52a95
commit
c00008e3cd
1 changed files with 0 additions and 11 deletions
|
@ -461,15 +461,4 @@ constexpr int CountTrailingZeros(uint32_t value)
|
||||||
#endif
|
#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
|
} // namespace Common
|
||||||
|
|
Loading…
Add table
Reference in a new issue