Home
last modified time | relevance | path

Searched refs:CurArraySize (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/llvm/lib/Support/
DSmallPtrSet.cpp30 CurArraySize = Size > 16 ? 1 << (Log2_32_Ceil(Size) + 1) : 32; in shrink_and_clear()
34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
36 memset(CurArray, -1, CurArraySize*sizeof(void*)); in shrink_and_clear()
41 if (LLVM_UNLIKELY(size() * 4 >= CurArraySize * 3)) { in insert_imp_big()
43 Grow(CurArraySize < 64 ? 128 : CurArraySize * 2); in insert_imp_big()
44 } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) { in insert_imp_big()
47 Grow(CurArraySize); in insert_imp_big()
66 unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1); in FindBucketFor()
67 unsigned ArraySize = CurArraySize; in FindBucketFor()
104 CurArraySize = NewSize; in Grow()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSmallPtrSet.cpp30 CurArraySize = Size > 16 ? 1 << (Log2_32_Ceil(Size) + 1) : 32; in shrink_and_clear()
34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
36 memset(CurArray, -1, CurArraySize*sizeof(void*)); in shrink_and_clear()
41 if (LLVM_UNLIKELY(size() * 4 >= CurArraySize * 3)) { in insert_imp_big()
43 Grow(CurArraySize < 64 ? 128 : CurArraySize * 2); in insert_imp_big()
44 } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) { in insert_imp_big()
47 Grow(CurArraySize); in insert_imp_big()
66 unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1); in FindBucketFor()
67 unsigned ArraySize = CurArraySize; in FindBucketFor()
104 CurArraySize = NewSize; in Grow()
[all …]
/external/llvm/lib/Support/
DSmallPtrSet.cpp29 CurArraySize = Size > 16 ? 1 << (Log2_32_Ceil(Size) + 1) : 32; in shrink_and_clear()
33 CurArray = (const void**)malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
35 memset(CurArray, -1, CurArraySize*sizeof(void*)); in shrink_and_clear()
40 if (LLVM_UNLIKELY(size() * 4 >= CurArraySize * 3)) { in insert_imp_big()
42 Grow(CurArraySize < 64 ? 128 : CurArraySize * 2); in insert_imp_big()
43 } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) { in insert_imp_big()
46 Grow(CurArraySize); in insert_imp_big()
89 unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1); in FindBucketFor()
90 unsigned ArraySize = CurArraySize; in FindBucketFor()
125 CurArraySize = NewSize; in Grow()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DSmallPtrSet.cpp30 CurArraySize = Size > 16 ? 1 << (Log2_32_Ceil(Size) + 1) : 32; in shrink_and_clear()
34 CurArray = (const void**)malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
36 memset(CurArray, -1, CurArraySize*sizeof(void*)); in shrink_and_clear()
41 if (LLVM_UNLIKELY(size() * 4 >= CurArraySize * 3)) { in insert_imp_big()
43 Grow(CurArraySize < 64 ? 128 : CurArraySize * 2); in insert_imp_big()
44 } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) { in insert_imp_big()
47 Grow(CurArraySize); in insert_imp_big()
90 unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1); in FindBucketFor()
91 unsigned ArraySize = CurArraySize; in FindBucketFor()
126 CurArraySize = NewSize; in Grow()
[all …]
/external/llvm/include/llvm/ADT/
DSmallPtrSet.h60 unsigned CurArraySize; variable
76 CurArraySize(SmallSize), NumNonEmpty(0), NumTombstones(0) { in SmallPtrSetImplBase()
94 if (size() * 4 < CurArraySize && CurArraySize > 32) in clear()
97 memset(CurArray, -1, CurArraySize * sizeof(void *)); in clear()
113 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; in EndPointer()
140 if (NumNonEmpty < CurArraySize) { in insert_imp()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallPtrSet.h66 unsigned CurArraySize; variable
83 CurArraySize(SmallSize), NumNonEmpty(0), NumTombstones(0) { in SmallPtrSetImplBase()
105 if (size() * 4 < CurArraySize && CurArraySize > 32) in clear()
108 memset(CurArray, -1, CurArraySize * sizeof(void *)); in clear()
125 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; in EndPointer()
152 if (NumNonEmpty < CurArraySize) { in insert_imp()
/external/llvm-project/llvm/include/llvm/ADT/
DSmallPtrSet.h59 unsigned CurArraySize; variable
76 CurArraySize(SmallSize), NumNonEmpty(0), NumTombstones(0) { in SmallPtrSetImplBase()
99 if (size() * 4 < CurArraySize && CurArraySize > 32) in clear()
102 memset(CurArray, -1, CurArraySize * sizeof(void *)); in clear()
119 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; in EndPointer()
147 if (NumNonEmpty < CurArraySize) { in insert_imp()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSmallPtrSet.h59 unsigned CurArraySize; variable
76 CurArraySize(SmallSize), NumNonEmpty(0), NumTombstones(0) { in SmallPtrSetImplBase()
99 if (size() * 4 < CurArraySize && CurArraySize > 32) in clear()
102 memset(CurArray, -1, CurArraySize * sizeof(void *)); in clear()
119 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; in EndPointer()
147 if (NumNonEmpty < CurArraySize) { in insert_imp()