Searched refs:bucketCount (Results 1 - 1 of 1) sorted by relevance

/system/core/libcutils/
H A Dhashmap.c36 size_t bucketCount; member in struct:Hashmap
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) { argument
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;
323 size_t bucketCount = map->bucketCount; local
[all...]

Completed in 41 milliseconds