Home
last modified time | relevance | path

Searched refs:elem_hash (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_encoder.cc270 uint32_t elem_hash = GRPC_MDSTR_KV_HASH(key_hash, value_hash); in add_elem_with_index() local
273 if (grpc_mdelem_eq(c->entries_elems[HASH_FRAGMENT_2(elem_hash)], elem)) { in add_elem_with_index()
275 c->indices_elems[HASH_FRAGMENT_2(elem_hash)] = new_index; in add_elem_with_index()
276 } else if (grpc_mdelem_eq(c->entries_elems[HASH_FRAGMENT_3(elem_hash)], in add_elem_with_index()
279 c->indices_elems[HASH_FRAGMENT_3(elem_hash)] = new_index; in add_elem_with_index()
280 } else if (GRPC_MDISNULL(c->entries_elems[HASH_FRAGMENT_2(elem_hash)])) { in add_elem_with_index()
282 c->entries_elems[HASH_FRAGMENT_2(elem_hash)] = GRPC_MDELEM_REF(elem); in add_elem_with_index()
283 c->indices_elems[HASH_FRAGMENT_2(elem_hash)] = new_index; in add_elem_with_index()
284 } else if (GRPC_MDISNULL(c->entries_elems[HASH_FRAGMENT_3(elem_hash)])) { in add_elem_with_index()
286 c->entries_elems[HASH_FRAGMENT_3(elem_hash)] = GRPC_MDELEM_REF(elem); in add_elem_with_index()
[all …]
/external/grpc-grpc/tools/codegen/core/
Dgen_static_metadata.py584 elem_hash = perfect_hash(elem_keys, 'elems') variable
585 print >> C, elem_hash['code']
587 keys = [0] * int(elem_hash['PHASHRANGE'])
588 idxs = [255] * int(elem_hash['PHASHNKEYS'])
590 h = elem_hash['pyfunc'](k)