From c00008e3cd5fe917fca1cf946c79e88f146a8226 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 5 Aug 2022 17:54:51 +0200 Subject: [PATCH] Common: Remove unused stuff from BitUtils.h --- Source/Core/Common/BitUtils.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Source/Core/Common/BitUtils.h b/Source/Core/Common/BitUtils.h index 82d347cf97..60a6abdc25 100644 --- a/Source/Core/Common/BitUtils.h +++ b/Source/Core/Common/BitUtils.h @@ -461,15 +461,4 @@ constexpr int CountTrailingZeros(uint32_t value) #endif } -#undef CONSTEXPR_FROM_INTRINSIC - -template -constexpr T LargestPowerOf2Divisor(T value) -{ - static_assert(std::is_unsigned(), - "LargestPowerOf2Divisor only makes sense for unsigned types."); - - return value & -static_cast>(value); -} - } // namespace Common