diff --git a/src/ds/bits.h b/src/ds/bits.h index 08eccaa..1680460 100644 --- a/src/ds/bits.h +++ b/src/ds/bits.h @@ -82,6 +82,10 @@ namespace snmalloc { return static_cast(__builtin_clzll(x)); } + else if constexpr (std::is_same_v) + { + return static_cast(__builtin_clz(x)); + } #endif } @@ -159,6 +163,10 @@ namespace snmalloc { return static_cast(__builtin_ctzll(x)); } + else if constexpr (std::is_same_v) + { + return static_cast(__builtin_ctz(x)); + } #endif }