Lines Matching defs:hm
46 IW_INLINE uint32_t _n_buckets(hmap_t *hm) { in _n_buckets()
123 hmap_t *hm = malloc(sizeof(*hm)); in iwhmap_create() local
142 hmap_t *hm = iwhmap_create(_int64_cmp, _hash_int64_key, kv_free_fn); in iwhmap_create_i64() local
152 hmap_t *hm = iwhmap_create(_int32_cmp, _hash_int32_key, kv_free_fn); in iwhmap_create_i32() local
163 static entry_t *_entry_find(IWHMAP *hm, const void *key, uint32_t hash) { in _entry_find()
174 static entry_t *_entry_add(IWHMAP *hm, void *key, uint32_t hash) { in _entry_add()
208 static void _rehash(hmap_t *hm, uint32_t num_buckets) { in _rehash()
255 iwrc iwhmap_put(IWHMAP *hm, void *key, void *val) { in iwhmap_put()
273 void *iwhmap_get(IWHMAP *hm, const void *key) { in iwhmap_get()
283 void iwhmap_remove(IWHMAP *hm, const void *key) { in iwhmap_remove()
319 int iwhmap_count(IWHMAP *hm) { in iwhmap_count()
323 void iwhmap_iter_init(IWHMAP *hm, IWHMAP_ITER *iter) { in iwhmap_iter_init()
355 void iwhmap_clear(IWHMAP *hm) { in iwhmap_clear()
379 void iwhmap_destroy(IWHMAP *hm) { in iwhmap_destroy()