Remove unused code.

This commit is contained in:
Christoffer Lerno
2025-07-04 02:26:01 +02:00
parent de4963ef95
commit 014f734260

View File

@@ -440,22 +440,6 @@ static inline bool is_power_of_two(uint64_t x)
return x != 0 && (x & (x - 1)) == 0;
}
static int clz(uint64_t num)
{
#if IS_CLANG || IS_GCC
return (int)__builtin_ctzll(num);
#else
unsigned long index;
_BitScanReverse64(&index, (__int64)num);
return (int)index;
#endif
}
static inline unsigned char power_of_2(uint64_t pot_value)
{
return 64 - clz(pot_value);
}
static inline uint32_t next_highest_power_of_2(uint32_t v)
{
v--;