diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
| commit | 513bf031a589d9e2a1a2730adf56f95e5e316a06 (patch) | |
| tree | 66ef6b095e6aa00c790ac37705fb9df3b099b92a /src/compat.h | |
| parent | 234dd752dc2e15afab38cbbf78f8aa32be72ea5f (diff) | |
Remove unused private functions and inline trivial helpers
Diffstat (limited to 'src/compat.h')
| -rw-r--r-- | src/compat.h | 9 |
1 files changed, 0 insertions, 9 deletions
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) |
