Lines Matching defs:Buckets
171 /// The problem with this is that the start of the hash buckets are not
192 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) {
195 return Buckets + BucketNum;
200 void **Buckets = static_cast<void**>(calloc(NumBuckets+1, sizeof(void*)));
202 Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
203 return Buckets;
213 Buckets = AllocateBuckets(NumBuckets);
217 free(Buckets);
221 memset(Buckets, 0, NumBuckets*sizeof(void*));
224 Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
233 void **OldBuckets = Buckets;
237 // Clear out new buckets.
238 Buckets = AllocateBuckets(NumBuckets);
241 // Walk the old buckets, rehashing nodes into their new place.
254 Buckets, NumBuckets));
269 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets);
297 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets);