HomeSort by relevance Sort by last modified time
    Searched refs:NumBuckets (Results 1 - 9 of 9) sorted by null

  /external/clang/test/SemaCXX/
2008-01-11-BadWarning.cpp 4 void** f(void **Buckets, unsigned NumBuckets) {
5 return Buckets + NumBuckets;
  /external/llvm/lib/Support/
StringMap.cpp 31 NumBuckets = 0;
39 NumBuckets = InitSize ? InitSize : 16;
43 TheTable = (StringMapEntryBase **)calloc(NumBuckets+1,
49 TheTable[NumBuckets] = (StringMapEntryBase*)2;
59 unsigned HTSize = NumBuckets;
62 HTSize = NumBuckets;
66 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1);
117 unsigned HTSize = NumBuckets;
121 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1);
175 assert(NumItems + NumTombstones <= NumBuckets);
    [all...]
FoldingSet.cpp 208 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) {
209 // NumBuckets is always a power of 2.
210 unsigned BucketNum = Hash & (NumBuckets-1);
215 static void **AllocateBuckets(unsigned NumBuckets) {
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] = reinterpret_cast<void*>(-1)
    [all...]
  /external/clang/lib/Lex/
HeaderMap.cpp 50 uint32_t NumBuckets; // Number of buckets (always a power of 2).
52 // An array of 'NumBuckets' HMapBucket objects follows this header.
183 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets);
186 getFileName(), NumBuckets,
189 for (unsigned i = 0; i != NumBuckets; ++i) {
205 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets);
209 if (NumBuckets & (NumBuckets-1)
    [all...]
  /external/clang/include/clang/Basic/
OnDiskHashTable.h 116 unsigned NumBuckets;
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) {
219 Emit32(out, NumBuckets);
221 for (unsigned i = 0; i < NumBuckets; ++i) Emit32(out, Buckets[i].off);
228 NumBuckets = 64
    [all...]
  /external/llvm/include/llvm/ADT/
StringMap.h 55 // Array of NumBuckets pointers to entries, null pointers are holes.
56 // TheTable[NumBuckets] contains a sentinel value for easy iteration. Followed
59 unsigned NumBuckets;
67 NumBuckets = 0;
100 unsigned getNumBuckets() const { return NumBuckets; }
271 return iterator(TheTable, NumBuckets == 0);
274 return iterator(TheTable+NumBuckets, true);
277 return const_iterator(TheTable, NumBuckets == 0);
280 return const_iterator(TheTable+NumBuckets, true);
325 assert(NumItems + NumTombstones <= NumBuckets);
    [all...]
DenseMap.h 434 unsigned NumBuckets = getNumBuckets();
435 if (NewNumEntries*4 >= NumBuckets*3) {
436 this->grow(NumBuckets * 2);
438 NumBuckets = getNumBuckets();
440 if (NumBuckets-(NewNumEntries+getNumTombstones()) <= NumBuckets/8) {
441 this->grow(NumBuckets * 2);
466 const unsigned NumBuckets = getNumBuckets();
468 if (NumBuckets == 0) {
481 unsigned BucketNo = getHashValue(Val) & (NumBuckets-1)
    [all...]
FoldingSet.h 117 /// NumBuckets - Length of the Buckets array. Always a power of 2.
119 unsigned NumBuckets;
418 iterator end() { return iterator(Buckets+NumBuckets); }
422 const_iterator end() const { return const_iterator(Buckets+NumBuckets); }
427 return bucket_iterator(Buckets + (hash & (NumBuckets-1)));
431 return bucket_iterator(Buckets + (hash & (NumBuckets-1)), true);
498 iterator end() { return iterator(Buckets+NumBuckets); }
502 const_iterator end() const { return const_iterator(Buckets+NumBuckets); }
507 return bucket_iterator(Buckets + (hash & (NumBuckets-1)));
511 return bucket_iterator(Buckets + (hash & (NumBuckets-1)), true)
    [all...]
  /external/clang/lib/Basic/
IdentifierTable.cpp 257 unsigned NumBuckets = HashTable.getNumBuckets();
259 unsigned NumEmptyBuckets = NumBuckets-NumIdentifiers;
276 NumIdentifiers/(double)NumBuckets);

Completed in 744 milliseconds