Lines Matching refs:Buckets
213 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { in GetBucketFor() argument
216 return Buckets + BucketNum; in GetBucketFor()
221 void **Buckets = static_cast<void**>(safe_calloc(NumBuckets + 1, in AllocateBuckets() local
224 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in AllocateBuckets()
225 return Buckets; in AllocateBuckets()
235 Buckets = AllocateBuckets(NumBuckets); in FoldingSetBase()
240 : Buckets(Arg.Buckets), NumBuckets(Arg.NumBuckets), NumNodes(Arg.NumNodes) { in FoldingSetBase()
241 Arg.Buckets = nullptr; in FoldingSetBase()
247 free(Buckets); // This may be null if the set is in a moved-from state. in operator =()
248 Buckets = RHS.Buckets; in operator =()
251 RHS.Buckets = nullptr; in operator =()
258 free(Buckets); in ~FoldingSetBase()
263 memset(Buckets, 0, NumBuckets*sizeof(void*)); in clear()
266 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in clear()
277 void **OldBuckets = Buckets; in GrowBucketCount()
281 Buckets = AllocateBuckets(NewBucketCount); in GrowBucketCount()
299 Buckets, NumBuckets), in GrowBucketCount()
329 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets); in FindNodeOrInsertPos()
358 InsertPos = GetBucketFor(Info.ComputeNodeHash(this, N, TempID), Buckets, in InsertNode()