Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/perf/util/
A Dhashmap.c105 size_t new_cap_bits, new_cap; in hashmap_grow() local
108 new_cap_bits = map->cap_bits + 1; in hashmap_grow()
109 if (new_cap_bits < HASHMAP_MIN_CAP_BITS) in hashmap_grow()
110 new_cap_bits = HASHMAP_MIN_CAP_BITS; in hashmap_grow()
112 new_cap = 1UL << new_cap_bits; in hashmap_grow()
118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
123 map->cap_bits = new_cap_bits; in hashmap_grow()
/linux-6.3-rc2/tools/lib/bpf/
A Dhashmap.c105 size_t new_cap_bits, new_cap; in hashmap_grow() local
108 new_cap_bits = map->cap_bits + 1; in hashmap_grow()
109 if (new_cap_bits < HASHMAP_MIN_CAP_BITS) in hashmap_grow()
110 new_cap_bits = HASHMAP_MIN_CAP_BITS; in hashmap_grow()
112 new_cap = 1UL << new_cap_bits; in hashmap_grow()
118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
123 map->cap_bits = new_cap_bits; in hashmap_grow()

Completed in 3 milliseconds