Home
last modified time | relevance | path

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

/base/security/selinux/interfaces/policycoreutils/src/
Dselinux_map.c108 HashNode *tmp = GetHashNodeByNode(handle->buckets[hashCode], node); in HashMapAdd()
112 node->next = handle->buckets[hashCode]; in HashMapAdd()
113 handle->buckets[hashCode] = node; in HashMapAdd()
126 HashNode *node = handle->buckets[hashCode]; in HashMapRemove()
131 if (node == handle->buckets[hashCode]) { in HashMapRemove()
132 handle->buckets[hashCode] = node->next; in HashMapRemove()
149 return GetHashNodeByKey(handle->buckets[hashCode], key); in HashMapGet()
171 HashListFree(handle->buckets[i]); in HashMapDestroy()
181 return GetHashNodeByKey(handle->buckets[hashCode], key); in HashMapFind()
/base/startup/init/services/utils/
Dinit_hashmap.c26 HashNode *buckets[0]; member
86 HashNode *tmp = GetHashNodeByNode(tab, tab->buckets[hashCode], node); in OH_HashMapAdd()
91 node->next = tab->buckets[hashCode]; in OH_HashMapAdd()
92 tab->buckets[hashCode] = node; in OH_HashMapAdd()
106 HashNode *node = tab->buckets[hashCode]; in OH_HashMapRemove()
111 if (node == tab->buckets[hashCode]) { in OH_HashMapRemove()
112 tab->buckets[hashCode] = node->next; in OH_HashMapRemove()
132 return GetHashNodeByKey(tab, tab->buckets[hashCode], key, tab->keyCompare); in OH_HashMapGet()
155 HashListFree(tab, tab->buckets[i]); in OH_HashMapDestory()
168 return GetHashNodeByKey(tab, tab->buckets[hashCode], key, keyCompare); in OH_HashMapFind()
[all …]
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp500 std::vector<DataType> buckets; in Init() local
501 InitBuckets(oldInfo, buckets, suffixArrayTemp); in Init()
654 std::vector<DataType> &buckets, std::vector<DataType> &suffixArrayTemp) in InitBuckets() argument
658 buckets.resize(BUCKET_SIZE, 0); in InitBuckets()
661 buckets[oldInfo.buffer[i]]++; in InitBuckets()
663 for (size_t i = 1; i < buckets.size(); i++) { in InitBuckets()
664 buckets[i] += buckets[i - 1]; in InitBuckets()
666 for (size_t i = buckets.size() - 1; i > 0; i--) { in InitBuckets()
667 buckets[i] = buckets[i - 1]; in InitBuckets()
669 buckets[0] = 0; in InitBuckets()
[all …]
Dblocks_diff.h39 std::vector<DataType> &buckets, std::vector<DataType> &suffixArrayTemp);
/base/security/selinux/interfaces/policycoreutils/include/
Dselinux_map.h34 HashNode *buckets[0]; member
/base/startup/init/test/unittest/init/
Dloopevent_unittest.cpp45 HashNode *buckets[0];