Lines Matching refs:ctx
43 typedef size_t (*hashmap_hash_fn)(const void *key, void *ctx);
44 typedef bool (*hashmap_equal_fn)(const void *key1, const void *key2, void *ctx);
55 void *ctx;
63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \
66 .ctx = (ctx), \
74 hashmap_equal_fn equal_fn, void *ctx);
77 void *ctx);
181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
185 if (map->equal_fn(cur->key, (_key), map->ctx))
189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
193 if (map->equal_fn(cur->key, (_key), map->ctx))