Searched refs:num_bucket (Results 1 – 1 of 1) sorted by relevance
32 size_t num_bucket; member51 size_t num_bucket, in hash_map_new_internal() argument58 assert(num_bucket > 0); in hash_map_new_internal()69 hash_map->num_bucket = num_bucket; in hash_map_new_internal()70 hash_map->bucket = osi_calloc(sizeof(hash_map_bucket_t) * num_bucket); in hash_map_new_internal()79 size_t num_bucket, in hash_map_new() argument85 return hash_map_new_internal(num_bucket, hash_fn, key_fn, data_fn, equality_fn); in hash_map_new()119 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_has_key()131 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_set()167 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_erase()[all …]