Lines Matching full:bucketcount
36 size_t bucketCount;
55 map->bucketCount = 1;
56 while (map->bucketCount <= minimumBucketCount) {
58 map->bucketCount <<= 1;
61 map->buckets = calloc(map->bucketCount, sizeof(Entry*));
97 static inline size_t calculateIndex(size_t bucketCount, int hash) {
98 return ((size_t) hash) & (bucketCount - 1);
103 if (map->size > (map->bucketCount * 3 / 4)) {
105 size_t newBucketCount = map->bucketCount << 1;
114 for (i = 0; i < map->bucketCount; i++) {
128 map->bucketCount = newBucketCount;
142 for (i = 0; i < map->bucketCount; i++) {
191 size_t index = calculateIndex(map->bucketCount, hash);
223 size_t index = calculateIndex(map->bucketCount, hash);
238 size_t index = calculateIndex(map->bucketCount, hash);
254 size_t index = calculateIndex(map->bucketCount, hash);
286 size_t index = calculateIndex(map->bucketCount, hash);
310 for (i = 0; i < map->bucketCount; i++) {
323 size_t bucketCount = map->bucketCount;
324 return bucketCount * 3 / 4;
330 for (i = 0; i < map->bucketCount; i++) {