Lines Matching defs:bucketCount
37 size_t bucketCount;
56 map->bucketCount = 1;
57 while (map->bucketCount <= minimumBucketCount) {
59 map->bucketCount <<= 1;
62 map->buckets = static_cast<Entry**>(calloc(map->bucketCount, sizeof(Entry*)));
101 static inline size_t calculateIndex(size_t bucketCount, int hash) {
102 return ((size_t) hash) & (bucketCount - 1);
107 if (map->size > (map->bucketCount * 3 / 4)) {
109 size_t newBucketCount = map->bucketCount << 1;
118 for (i = 0; i < map->bucketCount; i++) {
132 map->bucketCount = newBucketCount;
146 for (i = 0; i < map->bucketCount; i++) {
199 size_t index = calculateIndex(map->bucketCount, hash);
231 size_t index = calculateIndex(map->bucketCount, hash);
246 size_t index = calculateIndex(map->bucketCount, hash);
262 size_t index = calculateIndex(map->bucketCount, hash);
294 size_t index = calculateIndex(map->bucketCount, hash);
318 for (i = 0; i < map->bucketCount; i++) {
331 size_t bucketCount = map->bucketCount;
332 return bucketCount * 3 / 4;
338 for (i = 0; i < map->bucketCount; i++) {