aboutsummaryrefslogtreecommitdiffstats
path: root/cheesemap.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-04-12 21:35:58 +0200
committerFabrice <fabrice@schaub-dev.xyz>2026-04-12 21:36:31 +0200
commit0df03d19ce07e6104008e55e4adef101e954071b (patch)
tree0c7790868672c9e4b8c5b56aba57f474fade34f1 /cheesemap.h
parent4b15348415a9c6b2ba719c65eafdc008bf5c20e0 (diff)
helper for calc'ing the layout
Diffstat (limited to 'cheesemap.h')
-rw-r--r--cheesemap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cheesemap.h b/cheesemap.h
index 3e307a3..fb74b9a 100644
--- a/cheesemap.h
+++ b/cheesemap.h
@@ -77,7 +77,6 @@ typedef void (*cm_dealloc_fn)(cm_u8* ptr, cm_u8* user);
enum {
// cheesemap config
- CM_INITIAL_CAPACITY = CM_GROUP_SIZE,
CM_LOAD_DENOM = 8,
CM_LOAD_NUM = 7,
//
@@ -134,7 +133,7 @@ struct cheesemap_raw {
((struct cheesemap_raw){.ctrl = (cm_u8*)CM_CTRL_STATIC_EMPTY})
bool cm_raw_init_with(struct cheesemap_raw* map, cm_alloc_fn alloc, cm_u8* user,
- const struct cm_type* type, cm_usize initial_capacity);
+ const struct cm_type* type, cm_usize init_cap);
void cm_raw_drop(struct cheesemap_raw* map, cm_dealloc_fn dealloc, cm_u8* user,
const struct cm_type* type);
bool cm_raw_reserve(struct cheesemap_raw* map, cm_hash_fn hash,