Searched refs:hash_index_t (Results 1 – 6 of 6) sorted by relevance
23 hash_index_t hash_function_naive(const void *key) in hash_function_naive()25 return (hash_index_t)key; in hash_function_naive()28 hash_index_t hash_function_integer(const void *key) in hash_function_integer()30 return ((hash_index_t)key) * 2654435761; in hash_function_integer()33 hash_index_t hash_function_pointer(const void *key) in hash_function_pointer()35 return ((hash_index_t)key) * 2654435761; in hash_function_pointer()38 hash_index_t hash_function_string(const void *key) in hash_function_string()40 hash_index_t hash = 5381; in hash_function_string()
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()189 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_get()204 for (hash_index_t i = 0; i < hash_map->num_bucket; i++) { in hash_map_clear()218 for (hash_index_t i = 0; i < hash_map->num_bucket; ++i) { in hash_map_foreach()
26 hash_index_t hash_function_naive(const void *key);28 hash_index_t hash_function_integer(const void *key);31 hash_index_t hash_function_pointer(const void *key);33 hash_index_t hash_function_string(const void *key);
34 typedef size_t hash_index_t; typedef37 typedef hash_index_t (*hash_index_fn)(const void *key);
118 hash_index_t hash_function_bdaddr(const void *key) in hash_function_bdaddr()120 hash_index_t hash = 5381; in hash_function_bdaddr()
61 hash_index_t hash_function_bdaddr(const void *key);