Lines Matching refs:CurArraySize
28 CurArraySize = NumElements > 16 ? 1 << (Log2_32_Ceil(NumElements) + 1) : 32;
32 CurArray = (const void**)malloc(sizeof(void*) * (CurArraySize+1));
34 memset(CurArray, -1, CurArraySize*sizeof(void*));
38 CurArray[CurArraySize] = 0;
50 if (NumElements < CurArraySize-1) {
57 if (NumElements*4 >= CurArraySize*3) {
59 Grow(CurArraySize < 64 ? 128 : CurArraySize*2);
60 } else if (CurArraySize-(NumElements+NumTombstones) < CurArraySize/8) {
63 Grow(CurArraySize);
106 unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1);
107 unsigned ArraySize = CurArraySize;
136 unsigned OldSize = CurArraySize;
144 CurArraySize = NewSize;
183 CurArray = (const void**)malloc(sizeof(void*) * (that.CurArraySize+1));
188 CurArraySize = that.CurArraySize;
191 memcpy(CurArray, that.CurArray, sizeof(void*)*(CurArraySize+1));
201 assert(CurArraySize == RHS.CurArraySize &&
210 } else if (CurArraySize != RHS.CurArraySize) {
212 CurArray = (const void**)malloc(sizeof(void*) * (RHS.CurArraySize+1));
214 CurArray = (const void**)realloc(CurArray, sizeof(void*)*(RHS.CurArraySize+1));
219 CurArraySize = RHS.CurArraySize;
222 memcpy(CurArray, RHS.CurArray, sizeof(void*)*(CurArraySize+1));
234 std::swap(this->CurArraySize, RHS.CurArraySize);
245 std::copy(RHS.SmallArray, RHS.SmallArray+RHS.CurArraySize,
248 std::swap(this->CurArraySize, RHS.CurArraySize);
259 std::copy(this->SmallArray, this->SmallArray+this->CurArraySize,
262 std::swap(RHS.CurArraySize, this->CurArraySize);
272 assert(this->CurArraySize == RHS.CurArraySize);
273 std::swap_ranges(this->SmallArray, this->SmallArray+this->CurArraySize,