Lines Matching refs:hash
94 static uint32_t hash(nghttp2_map_key_type key) {
98 static size_t h2idx(uint32_t hash, uint32_t bits) {
99 return hash >> (32 - bits);
104 return (idx - h2idx(bkt->hash, tablelenbits)) & (tablelen - 1);
109 uint32_t h = bkt->hash;
113 bkt->hash = *phash;
122 static void map_bucket_set_data(nghttp2_map_bucket *bkt, uint32_t hash,
124 bkt->hash = hash;
143 idx = h2idx(bkt->hash, map->tablelenbits);
144 fprintf(stderr, "@%u hash=%08x key=%d base=%zu distance=%zu\n", i,
145 bkt->hash, bkt->key, idx,
152 uint32_t tablelenbits, uint32_t hash,
154 size_t idx = h2idx(hash, tablelenbits);
162 map_bucket_set_data(bkt, hash, key, data);
168 map_bucket_swap(bkt, &hash, &key, &data);
204 rv = insert(new_table, new_tablelen, new_tablelenbits, bkt->hash, bkt->key,
239 rv = insert(map->table, map->tablelen, map->tablelenbits, hash(key), key,
258 h = hash(key);
288 h = hash(key);