Lines Matching refs:hash
76 const char *key, size_t hash) in hashtable_find_pair() argument
88 if(pair->hash == hash && strcmp(pair->key, key) == 0) in hashtable_find_pair()
102 const char *key, size_t hash) in hashtable_do_del() argument
108 index = hash & hashmask(hashtable->order); in hashtable_do_del()
111 pair = hashtable_find_pair(hashtable, bucket, key, hash); in hashtable_do_del()
174 index = pair->hash % new_size; in hashtable_do_rehash()
215 size_t hash, index; in hashtable_set() local
222 hash = hash_str(key); in hashtable_set()
223 index = hash & hashmask(hashtable->order); in hashtable_set()
225 pair = hashtable_find_pair(hashtable, bucket, key, hash); in hashtable_set()
248 pair->hash = hash; in hashtable_set()
264 size_t hash; in hashtable_get() local
267 hash = hash_str(key); in hashtable_get()
268 bucket = &hashtable->buckets[hash & hashmask(hashtable->order)]; in hashtable_get()
270 pair = hashtable_find_pair(hashtable, bucket, key, hash); in hashtable_get()
279 size_t hash = hash_str(key); in hashtable_del() local
280 return hashtable_do_del(hashtable, key, hash); in hashtable_del()
307 size_t hash; in hashtable_iter_at() local
310 hash = hash_str(key); in hashtable_iter_at()
311 bucket = &hashtable->buckets[hash & hashmask(hashtable->order)]; in hashtable_iter_at()
313 pair = hashtable_find_pair(hashtable, bucket, key, hash); in hashtable_iter_at()