Lines Matching refs:num_bucket
34 size_t num_bucket; member
54 size_t num_bucket, in hash_map_new_internal() argument
61 assert(num_bucket > 0); in hash_map_new_internal()
74 hash_map->num_bucket = num_bucket; in hash_map_new_internal()
75 hash_map->bucket = zeroed_allocator->alloc(sizeof(hash_map_bucket_t) * num_bucket); in hash_map_new_internal()
84 size_t num_bucket, in hash_map_new() argument
89 …return hash_map_new_internal(num_bucket, hash_fn, key_fn, data_fn, equality_fn, &allocator_calloc); in hash_map_new()
112 return hash_map->num_bucket; in hash_map_num_buckets()
118 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_has_key()
129 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_set()
161 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_erase()
177 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_get()
190 for (hash_index_t i = 0; i < hash_map->num_bucket; i++){ in hash_map_clear()
202 for (hash_index_t i = 0; i < hash_map->num_bucket; ++i){ in hash_map_foreach()