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

/system/core/include/utils/
H A DBasicHashtable.h218 inline size_t bucketCount() const { function in class:android::BasicHashtable
/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 18 milliseconds