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()
237 : Buckets(Arg.Buckets), NumBuckets(Arg.NumBuckets), NumNodes(Arg.NumNodes) { in FoldingSetImpl()
238 Arg.Buckets = nullptr; in FoldingSetImpl()
244 free(Buckets); // This may be null if the set is in a moved-from state. in operator =()
245 Buckets = RHS.Buckets; in operator =()
248 RHS.Buckets = nullptr; in operator =()
255 free(Buckets); in ~FoldingSetImpl()
260 memset(Buckets, 0, NumBuckets*sizeof(void*)); in clear()
263 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in clear()
272 void **OldBuckets = Buckets; in GrowBucketCount()
277 Buckets = AllocateBuckets(NumBuckets); in GrowBucketCount()
293 Buckets, NumBuckets)); in GrowBucketCount()
323 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets); in FindNodeOrInsertPos()
351 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets); in InsertNode()