Lines Matching refs:bucketBits
20 int bucketBits; /* number of buckets is 1 << bucketBits */ member
55 ht->bucketBits = INITHASHSIZE; in ht_create()
56 numBuckets = 1 << ht->bucketBits; in ht_create()
76 int numBuckets = 1 << ht->bucketBits; in ht_destroy()
93 int numBuckets = 1 << ht->bucketBits; in double_size()
94 int newBucketBits = ht->bucketBits + 1; in double_size()
116 ht->bucketBits = newBucketBits; in double_size()
126 unsigned index = ht->hash(ht->cdata, key, ht->bucketBits); in ht_add()
146 if (ht->elements > 4 * (1 << ht->bucketBits) && in ht_add()
147 ht->bucketBits < MAXHASHSIZE) { in ht_add()
172 unsigned index = ht->hash(ht->cdata, key, ht->bucketBits); in ht_remove()
191 unsigned index = ht->hash(ht->cdata, key, ht->bucketBits); in ht_find()
208 int numBuckets = 1 << ht->bucketBits; in ht_dump_distribution()
281 int numBuckets = 1 << ht->bucketBits; in ht_dump_contents()