Searched refs:new_cap (Results 1 – 3 of 3) sorted by relevance
92 size_t new_cap_bits, new_cap; in hashmap_grow() local100 new_cap = 1UL << new_cap_bits; in hashmap_grow()101 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow()110 map->cap = new_cap; in hashmap_grow()
313 size_t new_cap; in btf_dump_add_emit_queue_id() local316 new_cap = max(16, d->emit_queue_cap * 3 / 2); in btf_dump_add_emit_queue_id()318 new_cap * sizeof(new_queue[0])); in btf_dump_add_emit_queue_id()322 d->emit_queue_cap = new_cap; in btf_dump_add_emit_queue_id()985 size_t new_cap; in btf_dump_push_decl_stack_id() local988 new_cap = max(16, d->decl_stack_cap * 3 / 2); in btf_dump_push_decl_stack_id()990 new_cap * sizeof(new_stack[0])); in btf_dump_push_decl_stack_id()994 d->decl_stack_cap = new_cap; in btf_dump_push_decl_stack_id()
781 size_t new_cap; in bpf_object__add_map() local787 new_cap = max((size_t)4, obj->maps_cap * 3 / 2); in bpf_object__add_map()788 new_maps = realloc(obj->maps, new_cap * sizeof(*obj->maps)); in bpf_object__add_map()794 obj->maps_cap = new_cap; in bpf_object__add_map()