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