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

  /external/llvm/lib/Support/
SmallPtrSet.cpp 26 CurArraySize = NumElements > 16 ? 1 << (Log2_32_Ceil(NumElements) + 1) : 32;
30 CurArray = (const void**)malloc(sizeof(void*) * (CurArraySize+1));
32 memset(CurArray, -1, CurArraySize*sizeof(void*));
36 CurArray[CurArraySize] = 0;
48 if (NumElements < CurArraySize-1) {
55 if (NumElements*4 >= CurArraySize*3) {
57 Grow(CurArraySize < 64 ? 128 : CurArraySize*2);
58 } else if (CurArraySize-(NumElements+NumTombstones) < CurArraySize/8)
    [all...]
  /external/llvm/include/llvm/ADT/
SmallPtrSet.h 55 /// CurArraySize - The allocated size of CurArray, always a power of two.
56 /// Note that CurArray points to an array that has CurArraySize+1 elements in
58 unsigned CurArraySize;
67 SmallArray(SmallStorage), CurArray(SmallStorage), CurArraySize(SmallSize) {
84 if (!isSmall() && NumElements*4 < CurArraySize && CurArraySize > 32)
88 memset(CurArray, -1, CurArraySize*sizeof(void*));
130 return static_cast<unsigned>(((uintptr_t)Ptr >> 4) & (CurArraySize-1));
279 return iterator(CurArray+CurArraySize);

Completed in 5419 milliseconds