Skip to content

Commit

Permalink
Merge pull request #10952 from JosJuice/bitutils-remove-unused
Browse files Browse the repository at this point in the history
Common: Remove unused stuff from BitUtils.h
  • Loading branch information
Tilka committed Aug 5, 2022
2 parents d48d317 + c00008e commit 3595c8b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Source/Core/Common/BitUtils.h
Expand Up @@ -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

0 comments on commit 3595c8b

Please sign in to comment.