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

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

Completed in 20 milliseconds