Home
last modified time | relevance | path

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

/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c82 size_t number_buckets; member
111 res->number_buckets = links_cache_initial_size; in archive_entry_linkresolver_new()
112 res->buckets = calloc(res->number_buckets, sizeof(res->buckets[0])); in archive_entry_linkresolver_new()
296 bucket = hash & (res->number_buckets - 1); in find_entry()
341 for (bucket = 0; bucket < res->number_buckets; bucket++) { in next_entry()
379 if (res->number_entries > res->number_buckets * 2) in insert_entry()
383 bucket = hash & (res->number_buckets - 1); in insert_entry()
405 new_size = res->number_buckets * 2; in grow_hash()
406 if (new_size < res->number_buckets) in grow_hash()
413 for (i = 0; i < res->number_buckets; i++) { in grow_hash()
[all …]
/freebsd/usr.bin/du/
H A Ddu.c379 static size_t number_buckets; in linkchk() local
391 number_buckets = links_hash_initial_size; in linkchk()
392 buckets = malloc(number_buckets * sizeof(buckets[0])); in linkchk()
395 for (i = 0; i < number_buckets; i++) in linkchk()
400 if (number_entries > number_buckets * 10 && !stop_allocating) { in linkchk()
401 new_size = number_buckets * 2; in linkchk()
418 for (i = 0; i < number_buckets; i++) { in linkchk()
437 number_buckets = new_size; in linkchk()
442 hash = ( st->st_dev ^ st->st_ino ) % number_buckets; in linkchk()