Searched refs:num_bucket (Results 1 – 1 of 1) sorted by relevance
34 size_t num_bucket; member54 size_t num_bucket, in hash_map_new_internal() argument61 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() argument89 …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()[all …]