Lines Matching defs:key
94 static uint32_t hash(nghttp2_map_key_type key) {
95 return (uint32_t)key * 2654435769u;
110 nghttp2_map_key_type key = bkt->key;
114 bkt->key = *pkey;
118 *pkey = key;
123 nghttp2_map_key_type key, void *data) {
125 bkt->key = key;
143 fprintf(stderr, "@%u hash=%08x key=%d base=%zu distance=%zu\n", i,
144 bkt->hash, bkt->key, idx,
151 nghttp2_map_key_type key, void *data) {
160 map_bucket_set_data(bkt, hash, key, data);
166 map_bucket_swap(bkt, &hash, &key, &data);
168 } else if (bkt->key == key) {
202 rv = insert(new_table, new_tablelen, new_tablelenbits, bkt->hash, bkt->key,
216 int nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) {
237 rv = insert(map->table, map->tablelen, map->tablelenbits, hash(key), key,
246 void *nghttp2_map_find(nghttp2_map *map, nghttp2_map_key_type key) {
256 h = hash(key);
267 if (bkt->key == key) {
276 int nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) {
286 h = hash(key);
297 if (bkt->key == key) {