Home | History | Annotate | Download | only in Support

Lines Matching refs:Buckets

187 /// The problem with this is that the start of the hash buckets are not
208 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) {
211 return Buckets + BucketNum;
216 void **Buckets = static_cast<void**>(calloc(NumBuckets+1, sizeof(void*)));
218 Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
219 return Buckets;
229 Buckets = AllocateBuckets(NumBuckets);
233 free(Buckets);
237 memset(Buckets, 0, NumBuckets*sizeof(void*));
240 Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
249 void **OldBuckets = Buckets;
253 // Clear out new buckets.
254 Buckets = AllocateBuckets(NumBuckets);
257 // Walk the old buckets, rehashing nodes into their new place.
270 Buckets, NumBuckets));
285 void **Bucket = GetBucketFor(IDHash, Buckets, NumBuckets);
313 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets);