Home
last modified time | relevance | path

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

/system/core/libcutils/
Dhashmap.cpp36 size_t bucketCount; member
55 map->bucketCount = 1; in hashmapCreate()
56 while (map->bucketCount <= minimumBucketCount) { in hashmapCreate()
58 map->bucketCount <<= 1; in hashmapCreate()
61 map->buckets = static_cast<Entry**>(calloc(map->bucketCount, sizeof(Entry*))); in hashmapCreate()
96 static inline size_t calculateIndex(size_t bucketCount, int hash) { in calculateIndex() argument
97 return ((size_t) hash) & (bucketCount - 1); in calculateIndex()
102 if (map->size > (map->bucketCount * 3 / 4)) { in expandIfNecessary()
104 size_t newBucketCount = map->bucketCount << 1; in expandIfNecessary()
113 for (i = 0; i < map->bucketCount; i++) { in expandIfNecessary()
[all …]