/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | BitVector.h | 33 unsigned Capacity; // Size of allocated memory in BitWord. variable 73 BitVector() : Size(0), Capacity(0) { in BitVector() 80 Capacity = NumBitWords(s); in Size() 81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size() 82 init_words(Bits, Capacity, t); in Size() 91 Capacity = 0; in BitVector() 95 Capacity = NumBitWords(RHS.size()); in BitVector() 96 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector() 97 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector() 199 if (N > Capacity * BITWORD_SIZE) { [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | BitVector.h | 38 unsigned Capacity; // Number of BitWords allocated in the Bits array. variable 78 BitVector() : Size(0), Capacity(0) { in BitVector() 85 Capacity = NumBitWords(s); in Size() 86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size() 87 init_words(Bits, Capacity, t); in Size() 96 Capacity = 0; in BitVector() 100 Capacity = NumBitWords(RHS.size()); in BitVector() 101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector() 102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector() 106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | BitVector.h | 37 unsigned Capacity; // Number of BitWords allocated in the Bits array. variable 78 BitVector() : Size(0), Capacity(0) { in BitVector() 85 Capacity = NumBitWords(s); in Size() 86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size() 87 init_words(Bits, Capacity, t); in Size() 96 Capacity = 0; in BitVector() 100 Capacity = NumBitWords(RHS.size()); in BitVector() 101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector() 102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector() 106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector() [all …]
|
/external/compiler-rt/lib/esan/ |
D | esan_circular_buffer.h | 38 Capacity = BufferCapacity; in initialize() 40 Data = (T *)MmapOrDie(Capacity * sizeof(T), "CircularBuffer"); in initialize() 46 UnmapOrDie(Data, Capacity * sizeof(T)); in free() 50 uptr ArrayIdx = (StartIdx + Idx) % Capacity; 55 uptr ArrayIdx = (StartIdx + Idx) % Capacity; 59 CHECK_GT(Capacity, 0); in push_back() 60 uptr ArrayIdx = (StartIdx + Count) % Capacity; in push_back() 62 if (Count < Capacity) in push_back() 65 StartIdx = (StartIdx + 1) % Capacity; in push_back() 69 uptr ArrayIdx = (StartIdx + Count - 1) % Capacity; in back() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | ArrayRecycler.h | 50 __asan_unpoison_memory_region(Entry, Capacity::get(Idx).getSize()); in pop() 52 __msan_allocated_memory(Entry, Capacity::get(Idx).getSize()); in pop() 64 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize()); in push() 72 class Capacity { 74 explicit Capacity(uint8_t idx) : Index(idx) {} in Capacity() function 77 Capacity() : Index(0) {} in Capacity() function 80 static Capacity get(size_t N) { in get() 81 return Capacity(N ? Log2_64_Ceil(N) : 0); in get() 93 Capacity getNext() const { return Capacity(Index + 1); } in getNext() 126 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | ThreadSafetyUtil.h | 84 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {} in SimpleArray() 86 : Data(Dat), Size(Sz), Capacity(Cp) {} in Data() 88 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {} in SimpleArray() 90 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray() 93 A.Capacity = 0; in SimpleArray() 100 Capacity = RHS.Capacity; 103 RHS.Size = RHS.Capacity = 0; 110 if (Ncp <= Capacity) in reserve() 114 Capacity = Ncp; in reserve() 120 if (Capacity == 0) in reserveCheck() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceBitVector.h | 258 unsigned Capacity; // Size of allocated memory in BitWord. variable 308 : Size(0), Capacity(0), Alloc(std::move(A)) { 316 Capacity = NumBitWords(s); in Size() 317 Bits = Alloc.allocate(Capacity); in Size() 318 init_words(Bits, Capacity, t); in Size() 327 Capacity = 0; in BitVectorTmpl() 331 Capacity = NumBitWords(RHS.size()); in BitVectorTmpl() 332 Bits = Alloc.allocate(Capacity); in BitVectorTmpl() 333 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVectorTmpl() 337 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity), in BitVectorTmpl() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ArrayRecycler.h | 70 class Capacity { 72 explicit Capacity(uint8_t idx) : Index(idx) {} in Capacity() function 75 Capacity() : Index(0) {} in Capacity() function 78 static Capacity get(size_t N) { in get() 79 return Capacity(N ? Log2_64_Ceil(N) : 0); in get() 91 Capacity getNext() const { return Capacity(Index + 1); } in getNext() 124 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate() 136 void deallocate(Capacity Cap, T *Ptr) { in deallocate()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 25 TEST(ArrayRecyclerTest, Capacity) { in TEST() argument 27 ARO::Capacity Cap = ARO::Capacity::get(0); in TEST() 32 Cap = ARO::Capacity::get(N); in TEST() 42 Cap = ARO::Capacity::get(0); in TEST() 55 ARO::Capacity Cap = ARO::Capacity::get(8); in TEST()
|
/external/clang/lib/Sema/ |
D | TypeLocBuilder.cpp | 46 assert(NewCapacity > Capacity); in grow() 50 unsigned NewIndex = Index + NewCapacity - Capacity; in grow() 53 Capacity - Index); in grow() 59 Capacity = NewCapacity; in grow() 75 size_t RequiredCapacity = Capacity + (LocalSize - Index); in pushImpl() 76 size_t NewCapacity = Capacity * 2; in pushImpl() 160 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
|
D | TypeLocBuilder.h | 31 size_t Capacity; variable 48 : Buffer(InlineBuffer.buffer), Capacity(InlineCapacity), in TypeLocBuilder() 60 if (Requested > Capacity) in reserve() 82 Index = Capacity; in clear() 109 size_t FullDataSize = Capacity - Index; in getTypeSourceInfo() 122 size_t FullDataSize = Capacity - Index; in getTypeLocInContext()
|
/external/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 25 TEST(ArrayRecyclerTest, Capacity) { in TEST() argument 27 ARO::Capacity Cap = ARO::Capacity::get(0); in TEST() 32 Cap = ARO::Capacity::get(N); in TEST() 42 Cap = ARO::Capacity::get(0); in TEST() 55 ARO::Capacity Cap = ARO::Capacity::get(8); in TEST()
|
/external/clang/include/clang/AST/ |
D | ASTVector.h | 36 llvm::PointerIntPair<T*, 1, bool> Capacity; variable 43 bool getTag() const { return Capacity.getInt(); } in getTag() 44 void setTag(bool B) { Capacity.setInt(B); } in setTag() 48 ASTVector() : Begin(nullptr), End(nullptr), Capacity(nullptr, false) {} in ASTVector() 50 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector() 52 O.Capacity.setPointer(nullptr); in ASTVector() 53 O.Capacity.setInt(false); in ASTVector() 57 : Begin(nullptr), End(nullptr), Capacity(nullptr, false) { in ASTVector() 66 swap(Capacity, O.Capacity); 369 return (iterator) Capacity.getPointer(); in capacity_ptr() [all …]
|
/external/v8/src/objects/ |
D | ordered-hash-table.h | 214 int Capacity() { return NumberOfBuckets() * kLoadFactor; } in Capacity() function 348 int Capacity() const { in Capacity() function 359 DCHECK_LE(nof_elements, Capacity()); in NumberOfElements() 366 DCHECK_LE(nof_deleted_elements, Capacity()); in NumberOfDeletedElements() 404 int capacity = Capacity(); in GetBucketsStartOffset() 428 DCHECK_EQ(Capacity(), capacity); in GetChainTableOffset() 436 DCHECK_LT(static_cast<unsigned>(entry), Capacity()); in SetNextEntry() 438 DCHECK(next_entry <= Capacity() || next_entry == kNotFound); in SetNextEntry() 443 DCHECK_LT(entry, Capacity()); in GetNextEntry() 448 DCHECK_LT(entry, Capacity()); in GetDataEntry() [all …]
|
/external/clang/include/clang/Analysis/Support/ |
D | BumpVector.h | 59 T *Begin, *End, *Capacity; variable 63 : Begin(nullptr), End(nullptr), Capacity(nullptr) { in BumpVector() 155 if (End < Capacity) { in push_back() 170 if (End + Cnt <= Capacity) { in insert() 184 if (unsigned(Capacity-Begin) < N) in reserve() 190 size_t capacity() const { return Capacity - Begin; } in capacity() 221 size_t CurCapacity = Capacity-Begin; in grow() 246 Capacity = Begin+NewCapacity; in grow()
|
/external/brotli/csharp/org/brotli/dec/ |
D | BitReader.cs | 15 private const int Capacity = 1024; field in Org.Brotli.Dec.BitReader 19 private const int IntBufferSize = Capacity + Slack; 21 private const int ByteReadSize = Capacity << 2; 58 if (br.intOffset <= Capacity - 9) in ReadMoreInput() 151 br.intOffset = Capacity; in Init() 198 int limit = Capacity; in IntAvailable()
|
/external/v8/src/heap/ |
D | stress-scavenge-observer.cc | 31 if (has_requested_gc_ || heap_.new_space()->Capacity() == 0) { in Step() 36 heap_.new_space()->Size() * 100.0 / heap_.new_space()->Capacity(); in Step() 66 heap_.new_space()->Size() * 100.0 / heap_.new_space()->Capacity(); in RequestedGCDone()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/Native/ |
D | HashTable.h | 111 support::ulittle32_t Capacity; 120 HashTable(uint32_t Capacity, TraitsT Traits) : Traits(Traits) { 121 Buckets.resize(Capacity); 128 if (H->Capacity == 0) 131 if (H->Size > maxLoad(H->Capacity)) 135 Buckets.resize(H->Capacity); 191 H.Capacity = capacity();
|
/external/antlr/runtime/ObjC/Framework/ |
D | HashMap.m | 461 @synthesize Capacity; 551 Capacity = capacity; 558 for( idx = 0; idx < Capacity; idx++ ) { 596 Capacity = capacity; 667 Capacity = capacity; 690 for( idx = 0; idx < Capacity; idx++ ) { 715 for (NSUInteger i = 0; i < Capacity; i++) { 729 for (NSInteger i = 0; i < Capacity; i++) { 744 for( idx = 0; idx < Capacity; idx++ ) { 764 for( idx = 0; idx < Capacity; idx++ ) { [all …]
|
/external/v8/src/libplatform/tracing/ |
D | trace-buffer.cc | 72 return static_cast<uint64_t>(chunk_seq) * Capacity() + in MakeHandle() 79 *chunk_seq = static_cast<uint32_t>(handle / Capacity()); in ExtractHandle() 80 size_t indices = handle % Capacity(); in ExtractHandle()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | IntervalMap.cpp | 120 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, in distribute() argument 123 assert(Elements + Grow <= Nodes * Capacity && "Not enough room for elements"); in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | IntervalMap.cpp | 120 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, in distribute() argument 123 assert(Elements + Grow <= Nodes * Capacity && "Not enough room for elements"); in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute()
|
/external/llvm/lib/Support/ |
D | IntervalMap.cpp | 120 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity, in distribute() argument 123 assert(Elements + Grow <= Nodes * Capacity && "Not enough room for elements"); in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute()
|
/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVValue.h | 351 PacketAlign(ThePacketAlign), Capacity(TheCapacity){ in SPIRVConstantPipeStorage() 356 PacketAlign(0), Capacity(0){} in SPIRVConstantPipeStorage() 367 return Capacity; in getCapacity() 375 SPIRVWord Capacity; variable 382 _SPIRV_DEF_ENCDEC5(Type, Id, PacketSize, PacketAlign, Capacity)
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | SmallVector.h | 42 unsigned Size = 0, Capacity; variable 45 SmallVectorBase(void *FirstEl, size_t Capacity) in SmallVectorBase() argument 46 : BeginX(FirstEl), Capacity(Capacity) {} in SmallVectorBase() 54 size_t capacity() const { return Capacity; } in capacity() 109 Size = Capacity = 0; // FIXME: Setting Capacity to 0 is suspect. in resetToSmall() 260 this->Capacity = NewCapacity; in grow() 685 std::swap(this->Capacity, RHS.Capacity); in swap() 775 this->Capacity = RHS.Capacity;
|