summaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h9
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)