Home
last modified time | relevance | path

Searched refs:Capacity (Results 1 – 25 of 59) sorted by relevance

123

/external/llvm/include/llvm/ADT/
DBitVector.h37 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 …]
DIntervalMap.h216 enum { Capacity = N }; enumerator
405 IdxPair distribute(unsigned Nodes, unsigned Elements, unsigned Capacity,
505 assert(n <= NodeT::Capacity && "Size too big for node"); in NodeRef()
1084 if (branched() || rootSize == RootLeaf::Capacity) in insert()
1160 const unsigned Nodes = RootLeaf::Capacity / Leaf::Capacity + 1; in branchRoot()
1170 NewOffset = distribute(Nodes, rootSize, Leaf::Capacity, nullptr, size, in branchRoot()
1201 const unsigned Nodes = RootBranch::Capacity / Branch::Capacity + 1; in splitRoot()
1211 NewOffset = distribute(Nodes, rootSize, Leaf::Capacity, nullptr, Size, in splitRoot()
1733 if (IM.rootSize < RootBranch::Capacity) { in insertNode()
1753 if (P.size(Level) == Branch::Capacity) { in insertNode()
[all …]
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyUtil.h88 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {} in SimpleArray()
90 : Data(Dat), Size(Sz), Capacity(Cp) {} in Data()
92 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {} in SimpleArray()
94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray()
97 A.Capacity = 0; in SimpleArray()
104 Capacity = RHS.Capacity;
107 RHS.Size = RHS.Capacity = 0;
114 if (Ncp <= Capacity) in reserve()
118 Capacity = Ncp; in reserve()
125 if (Capacity == 0) in reserveCheck()
[all …]
/external/llvm/include/llvm/Support/
DArrayRecycler.h70 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/clang/lib/Sema/
DTypeLocBuilder.cpp46 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()
132 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
DTypeLocBuilder.h31 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/
DArrayRecyclerTest.cpp25 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/
DASTVector.h36 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/clang/include/clang/Analysis/Support/
DBumpVector.h59 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/llvm/lib/Support/
DIntervalMap.cpp120 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/v8/test/cctest/heap/
Dtest-spaces.cc503 CHECK_EQ(compaction_space->Capacity(), 0); in TEST()
507 CHECK_EQ(compaction_space->Capacity(), rest); in TEST()
557 CHECK_EQ(spaces[i]->Get(id)->accounting_stats_.Capacity(), 0); in MergeCompactionSpaces()
573 CHECK_GE(spaces[i]->Get(id)->accounting_stats_.Capacity(), in AllocateInCompactionSpaces()
585 *capacity += spaces[i]->Get(id)->accounting_stats_.Capacity(); in CompactionStats()
603 intptr_t rest_capacity = old_space->accounting_stats_.Capacity() - in TestCompactionSpaceDivide()
611 intptr_t initial_old_space_capacity = old_space->accounting_stats_.Capacity(); in TestCompactionSpaceDivide()
623 intptr_t old_space_capacity = old_space->accounting_stats_.Capacity(); in TestCompactionSpaceDivide()
635 CHECK_EQ(old_space->accounting_stats_.Capacity(), old_space_capacity); in TestCompactionSpaceDivide()
641 CHECK_EQ(old_space->accounting_stats_.Capacity(), in TestCompactionSpaceDivide()
[all …]
/external/v8/test/cctest/
Dtest-weaksets.cc140 CHECK_EQ(32, ObjectHashTable::cast(weakset->table())->Capacity()); in TEST()
155 CHECK_EQ(128, ObjectHashTable::cast(weakset->table())->Capacity()); in TEST()
167 CHECK_EQ(32, ObjectHashTable::cast(weakset->table())->Capacity()); in TEST()
Dtest-weakmaps.cc141 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->Capacity()); in TEST()
156 CHECK_EQ(128, ObjectHashTable::cast(weakmap->table())->Capacity()); in TEST()
168 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->Capacity()); in TEST()
/external/libchrome/base/trace_event/
Dtrace_buffer.cc74 size_t Capacity() const override { in Capacity() function in base::trace_event::__anonb54da8c60111::TraceBufferRingBuffer
148 size_t Capacity() const override { return 0; } in Capacity() function in base::trace_event::__anonb54da8c60111::TraceBufferRingBuffer::ClonedTraceBuffer
237 size_t Capacity() const override { in Capacity() function in base::trace_event::__anonb54da8c60111::TraceBufferVector
Dtrace_buffer.h70 virtual size_t Capacity() const = 0;
/external/protobuf/src/google/protobuf/
Drepeated_field.h144 int Capacity() const;
303 int Capacity() const;
466 int Capacity() const;
637 inline int RepeatedField<Element>::Capacity() const { in Capacity() function
643 GOOGLE_DCHECK_LT(size(), Capacity()); in AddAlreadyReserved()
649 GOOGLE_DCHECK_LT(size(), Capacity()); in AddAlreadyReserved()
942 inline int RepeatedPtrFieldBase::Capacity() const {
1234 inline int RepeatedPtrField<Element>::Capacity() const {
1235 return RepeatedPtrFieldBase::Capacity();
/external/webrtc/webrtc/base/
Dbytebuffer_unittest.cc106 size_t capacity = buffer.Capacity(); in TEST()
107 buffer.ReserveWriteBuffer(buffer.Capacity()); in TEST()
Dbytebuffer.h45 size_t Capacity() const { return size_ - start_; } in Capacity() function
/external/v8/src/heap/
Dscavenge-job.cc29 size_t new_space_capacity = heap->new_space()->Capacity(); in RunInternal()
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.Collections.pas218 FInsertionOrderList.Capacity := ACapacity;
258 FInsertionOrderList.Capacity := FDictionary.Count;
DAntlr.Runtime.Tools.pas179 property Capacity: Integer read GetCapacity write SetCapacity; property
470 Result := inherited Capacity;
493 Result.Capacity := Count;
519 inherited Capacity := Value;
/external/clang/lib/CodeGen/
DCGCleanup.cpp117 unsigned Capacity = 1024; in allocate() local
118 while (Capacity < Size) Capacity *= 2; in allocate()
119 StartOfBuffer = new char[Capacity]; in allocate()
120 StartOfData = EndOfBuffer = StartOfBuffer + Capacity; in allocate()
/external/cros/system_api/dbus/
Dmtp_storage_info.proto42 // Capacity of the storage in bytes.
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tools.Tests.pas226 FIList.Capacity := 100;
237 CheckEquals(FIList.Capacity,100);
/external/v8/src/runtime/
Druntime-collections.cc251 for (int i = 0; count / 2 < max_entries && i < table->Capacity(); i++) { in RUNTIME_FUNCTION()
363 for (int i = 0; count < max_values && i < table->Capacity(); i++) { in RUNTIME_FUNCTION()

123