From 513bf031a589d9e2a1a2730adf56f95e5e316a06 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 17:17:43 +0300 Subject: Remove unused private functions and inline trivial helpers --- src/compat.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/compat.h') diff --git a/src/compat.h b/src/compat.h index dc345d0..cb62679 100644 --- a/src/compat.h +++ b/src/compat.h @@ -144,15 +144,6 @@ static inline uint64_t term_next_pow2_64(uint64_t x) return (x <= 1) ? 1 : (lz == 0 ? UINT64_MAX : res); } -static inline size_t term_next_pow2(size_t x) -{ -#if SIZE_MAX > UINT32_MAX - return (size_t)term_next_pow2_64(x); -#else - return (size_t)term_next_pow2_32((uint32_t)x); -#endif -} - /* Grows cap by doubling until >= need, branchlessly. * If cap >= need, returns cap. Otherwise returns next power of two >= need. */ static inline uint32_t term_grow_cap32(uint32_t cap, uint32_t need) -- cgit v1.2.3