Searched refs:maxBucket (Results 1 – 3 of 3) sorted by relevance
/base/startup/init/services/utils/ |
D | init_hashmap.c | 24 int maxBucket; member 32 …INIT_ERROR_CHECK(handle != NULL && info != NULL && info->maxBucket > 0, return -1, "Invalid param"… in OH_HashMapCreate() 35 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode*) * info->maxBucket); in OH_HashMapCreate() 37 tab->maxBucket = info->maxBucket; in OH_HashMapCreate() 82 hashCode = hashCode % tab->maxBucket; in OH_HashMapAdd() 83 …INIT_ERROR_CHECK(hashCode < tab->maxBucket, return -1, "Invalid hashcode %d %d", tab->maxBucket, h… in OH_HashMapAdd() 103 hashCode = hashCode % tab->maxBucket; in OH_HashMapRemove() 104 …INIT_ERROR_CHECK(hashCode < tab->maxBucket, return, "Invalid hashcode %d %d", tab->maxBucket, hash… in OH_HashMapRemove() 129 hashCode = hashCode % tab->maxBucket; in OH_HashMapGet() 130 INIT_ERROR_CHECK(hashCode < tab->maxBucket, return NULL, in OH_HashMapGet() [all …]
|
/base/startup/init/services/include/ |
D | init_hashmap.h | 49 int maxBucket; member
|
/base/startup/init/test/unittest/init/ |
D | loopevent_unittest.cpp | 43 int maxBucket;
|