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;
144 fprintf(stderr, "@%u hash=%08x key=%d base=%zu distance=%zu\n", i,
145 bkt->hash, bkt->key, idx,
153 nghttp2_map_key_type key, void *data) {
162 map_bucket_set_data(bkt, hash, key, data);
168 map_bucket_swap(bkt, &hash, &key, &data);
170 } else if (bkt->key == key) {
204 rv = insert(new_table, new_tablelen, new_tablelenbits, bkt->hash, bkt->key,
218 int nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) {
239 rv = insert(map->table, map->tablelen, map->tablelenbits, hash(key), key,
248 void *nghttp2_map_find(nghttp2_map *map, nghttp2_map_key_type key) {
258 h = hash(key);
269 if (bkt->key == key) {
278 int nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) {
288 h = hash(key);
299 if (bkt->key == key) {