Home | History | Annotate | Download | only in libcutils

Lines Matching defs: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*));
100 static inline size_t calculateIndex(size_t bucketCount, int hash) {
101 return ((size_t) hash) & (bucketCount - 1);
106 if (map->size > (map->bucketCount * 3 / 4)) {
108 size_t newBucketCount = map->bucketCount << 1;
117 for (i = 0; i < map->bucketCount; i++) {
131 map->bucketCount = newBucketCount;
145 for (i = 0; i < map->bucketCount; i++) {
198 size_t index = calculateIndex(map->bucketCount, hash);
230 size_t index = calculateIndex(map->bucketCount, hash);
245 size_t index = calculateIndex(map->bucketCount, hash);
261 size_t index = calculateIndex(map->bucketCount, hash);
293 size_t index = calculateIndex(map->bucketCount, hash);
317 for (i = 0; i < map->bucketCount; i++) {
330 size_t bucketCount = map->bucketCount;
331 return bucketCount * 3 / 4;
337 for (i = 0; i < map->bucketCount; i++) {