Searched refs:NumBuckets (Results 1 - 9 of 9) sorted by relevance

/external/clang/test/SemaCXX/
H A D2008-01-11-BadWarning.cpp3 void** f(void **Buckets, unsigned NumBuckets) { argument
4 return Buckets + NumBuckets;
/external/llvm/lib/Support/
H A DStringMap.cpp30 NumBuckets = 0;
38 NumBuckets = InitSize ? InitSize : 16;
42 TheTable = (ItemBucket*)calloc(NumBuckets+1, sizeof(ItemBucket));
46 TheTable[NumBuckets].Item = (StringMapEntryBase*)2;
56 unsigned HTSize = NumBuckets;
59 HTSize = NumBuckets;
114 unsigned HTSize = NumBuckets;
172 assert(NumItems + NumTombstones <= NumBuckets);
187 if (NumItems*4 > NumBuckets*3) {
188 NewSize = NumBuckets*
[all...]
H A DFoldingSet.cpp208 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { argument
209 // NumBuckets is always a power of 2.
210 unsigned BucketNum = Hash & (NumBuckets-1);
215 static void **AllocateBuckets(unsigned NumBuckets) { argument
216 void **Buckets = static_cast<void**>(calloc(NumBuckets+1, sizeof(void*)));
218 Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
228 NumBuckets = 1 << Log2InitSize;
229 Buckets = AllocateBuckets(NumBuckets);
237 memset(Buckets, 0, NumBuckets*sizeof(void*));
240 Buckets[NumBuckets]
[all...]
/external/llvm/include/llvm/ADT/
H A DDenseMap.h41 unsigned NumBuckets; member in class:llvm::DenseMap
52 NumBuckets = 0;
68 for (BucketT *P = Buckets, *E = Buckets+NumBuckets; P != E; ++P) {
75 if (NumBuckets)
76 memset((void*)Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
86 return empty() ? end() : iterator(Buckets, Buckets+NumBuckets);
89 return iterator(Buckets+NumBuckets, Buckets+NumBuckets);
92 return empty() ? end() : const_iterator(Buckets, Buckets+NumBuckets);
95 return const_iterator(Buckets+NumBuckets, Bucket
[all...]
H A DStringMap.h68 unsigned NumBuckets; member in class:llvm::StringMapImpl
76 NumBuckets = 0;
109 unsigned getNumBuckets() const { return NumBuckets; }
277 return iterator(TheTable, NumBuckets == 0);
280 return iterator(TheTable+NumBuckets, true);
283 return const_iterator(TheTable, NumBuckets == 0);
286 return const_iterator(TheTable+NumBuckets, true);
331 assert(NumItems + NumTombstones <= NumBuckets);
343 for (ItemBucket *I = TheTable, *E = TheTable+NumBuckets; I != E; ++I) {
370 assert(NumItems + NumTombstones <= NumBuckets);
[all...]
H A DFoldingSet.h117 /// NumBuckets - Length of the Buckets array. Always a power of 2.
119 unsigned NumBuckets; member in class:llvm::FoldingSetImpl
410 iterator end() { return iterator(Buckets+NumBuckets); }
414 const_iterator end() const { return const_iterator(Buckets+NumBuckets); }
419 return bucket_iterator(Buckets + (hash & (NumBuckets-1)));
423 return bucket_iterator(Buckets + (hash & (NumBuckets-1)), true);
489 iterator end() { return iterator(Buckets+NumBuckets); }
493 const_iterator end() const { return const_iterator(Buckets+NumBuckets); }
498 return bucket_iterator(Buckets + (hash & (NumBuckets-1)));
502 return bucket_iterator(Buckets + (hash & (NumBuckets
[all...]
/external/clang/lib/Lex/
H A DHeaderMap.cpp50 uint32_t NumBuckets; // Number of buckets (always a power of 2). member in struct:clang::HMapHeader
52 // An array of 'NumBuckets' HMapBucket objects follows this header.
183 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); local
186 getFileName(), NumBuckets,
189 for (unsigned i = 0; i != NumBuckets; ++i) {
205 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); local
209 if (NumBuckets & (NumBuckets
[all...]
/external/clang/include/clang/Basic/
H A DOnDiskHashTable.h116 unsigned NumBuckets; member in class:clang::OnDiskChainedHashTableGenerator
155 for (unsigned i = 0; i < NumBuckets; ++i)
164 NumBuckets = newsize;
180 if (4*NumEntries >= 3*NumBuckets) resize(NumBuckets*2);
181 insert(Buckets, NumBuckets, new (BA.Allocate<Item>()) Item(key, data,
194 for (unsigned i = 0; i < NumBuckets; ++i) {
218 Emit32(out, NumBuckets);
220 for (unsigned i = 0; i < NumBuckets; ++i) Emit32(out, Buckets[i].off);
227 NumBuckets
240 const unsigned NumBuckets; member in class:clang::OnDiskChainedHashTable
[all...]
/external/clang/lib/Basic/
H A DIdentifierTable.cpp239 unsigned NumBuckets = HashTable.getNumBuckets(); local
241 unsigned NumEmptyBuckets = NumBuckets-NumIdentifiers;
258 NumIdentifiers/(double)NumBuckets);

Completed in 3552 milliseconds