Lines Matching refs:Buckets
209 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { in GetBucketFor() argument
212 return Buckets + BucketNum; in GetBucketFor()
217 void **Buckets = static_cast<void**>(calloc(NumBuckets+1, sizeof(void*))); in AllocateBuckets() local
219 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in AllocateBuckets()
220 return Buckets; in AllocateBuckets()
232 Buckets = AllocateBuckets(NumBuckets); in FoldingSetImpl()
236 free(Buckets); in ~FoldingSetImpl()
240 memset(Buckets, 0, NumBuckets*sizeof(void*)); in clear()
243 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in clear()
252 void **OldBuckets = Buckets; in GrowHashTable()
257 Buckets = AllocateBuckets(NumBuckets); in GrowHashTable()
273 Buckets, NumBuckets)); in GrowHashTable()
288 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets); in FindNodeOrInsertPos()
316 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets); in InsertNode()