Home | History | Annotate | Download | only in Basic

Lines Matching defs:Buckets

141   Bucket* Buckets;
156 for (Item* E = Buckets[i].head; E ; ) {
163 free(Buckets);
165 Buckets = newBuckets;
181 insert(Buckets, NumBuckets, new (BA.Allocate<Item>()) Item(key, data,
195 Bucket& B = Buckets[i];
221 for (unsigned i = 0; i < NumBuckets; ++i) Emit32(out, Buckets[i].off);
231 Buckets = (Bucket*) std::calloc(NumBuckets, sizeof(Bucket));
235 std::free(Buckets);
243 const unsigned char* const Buckets;
253 const unsigned char* buckets,
257 Buckets(buckets), Base(base), InfoObj(InfoObj) {
258 assert((reinterpret_cast<uintptr_t>(buckets) & 0x3) == 0 &&
259 "'buckets' must have a 4-byte alignment");
265 const unsigned char* getBuckets() const { return Buckets; }
295 const unsigned char* Bucket = Buckets + sizeof(uint32_t)*idx;
468 static OnDiskChainedHashTable* Create(const unsigned char* buckets,
472 assert(buckets > base);
473 assert((reinterpret_cast<uintptr_t>(buckets) & 0x3) == 0 &&
474 "buckets should be 4-byte aligned.");
476 unsigned numBuckets = ReadLE32(buckets);
477 unsigned numEntries = ReadLE32(buckets);
478 return new OnDiskChainedHashTable<Info>(numBuckets, numEntries, buckets,