Lines Matching refs:hash_key
175 uint8_t hash_key[HASH_KEY_SIZE]; /* hash key; changes during resize */
276 unsigned long string_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) {
278 siphash24((uint8_t*) &u, p, strlen(p), hash_key);
291 unsigned long trivial_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) {
293 siphash24((uint8_t*) &u, &p, sizeof(p), hash_key);
306 unsigned long uint64_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) {
308 siphash24((uint8_t*) &u, p, sizeof(uint64_t), hash_key);
325 unsigned long devt_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) {
327 siphash24((uint8_t*) &u, p, sizeof(dev_t), hash_key);
373 static uint8_t *hash_key(HashmapBase *h) {
374 return h->has_indirect ? h->indirect.hash_key
379 return (unsigned) (h->hash_ops->hash(p, hash_key(h)) % n_buckets(h));
383 static void get_hash_key(uint8_t hash_key[HASH_KEY_SIZE], bool reuse_is_ok) {
399 memcpy(hash_key, current, sizeof(current));
1137 get_hash_key(h->indirect.hash_key, !h->has_indirect);