Lines Matching refs:Buckets
208 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { in GetBucketFor() argument
211 return Buckets + BucketNum; in GetBucketFor()
216 void **Buckets = static_cast<void**>(calloc(NumBuckets+1, sizeof(void*))); in AllocateBuckets() local
218 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in AllocateBuckets()
219 return Buckets; in AllocateBuckets()
229 Buckets = AllocateBuckets(NumBuckets); in FoldingSetImpl()
233 free(Buckets); in ~FoldingSetImpl()
237 memset(Buckets, 0, NumBuckets*sizeof(void*)); in clear()
240 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in clear()
249 void **OldBuckets = Buckets; in GrowHashTable()
254 Buckets = AllocateBuckets(NumBuckets); in GrowHashTable()
270 Buckets, NumBuckets)); in GrowHashTable()
285 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets); in FindNodeOrInsertPos()
313 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets); in InsertNode()