Home | History | Annotate | Download | only in program

Lines Matching defs:num_buckets

44     unsigned num_buckets;
57 hash_table_ctor(unsigned num_buckets, hash_func_t hash,
64 if (num_buckets < 16) {
65 num_buckets = 16;
68 ht = malloc(sizeof(*ht) + ((num_buckets - 1)
73 ht->num_buckets = num_buckets;
75 for (i = 0; i < num_buckets; i++) {
100 for (i = 0; i < ht->num_buckets; i++) {
115 const unsigned bucket = hash_value % ht->num_buckets;
141 const unsigned bucket = hash_value % ht->num_buckets;
156 const unsigned bucket = hash_value % ht->num_buckets;
198 for (bucket = 0; bucket < ht->num_buckets; bucket++) {