Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DArrayRecycler.h49 __asan_unpoison_memory_region(Entry, Capacity::get(Idx).getSize()); in pop()
51 __msan_allocated_memory(Entry, Capacity::get(Idx).getSize()); in pop()
63 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize()); in push()
71 class Capacity {
73 explicit Capacity(uint8_t idx) : Index(idx) {} in Capacity() function
76 Capacity() : Index(0) {} in Capacity() function
79 static Capacity get(size_t N) { in get()
80 return Capacity(N ? Log2_64_Ceil(N) : 0); in get()
92 Capacity getNext() const { return Capacity(Index + 1); } in getNext()
125 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h94 : 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()
124 if (Capacity == 0) in reserveCheck()
126 else if (Size + N < Capacity) in reserveCheck()
179 assert(Size < Capacity); in push_back()
190 assert(Sz <= Capacity); in setValues()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map.h34 MemMapDefault(uptr Base, uptr Capacity) : Base(Base), Capacity(Capacity) {} in MemMapDefault() argument
46 uptr getCapacityImpl() { return Capacity; } in getCapacityImpl()
52 uptr Capacity = 0; variable
68 uptr getCapacityImpl() { return Capacity; } in getCapacityImpl()
72 uptr Capacity = 0; variable
H A Dmem_map.cpp23 Capacity = Size; in mapImpl()
28 if (Size == Capacity) { in unmapImpl()
29 Base = MappedBase = Capacity = 0; in unmapImpl()
35 Capacity -= Size; in unmapImpl()
61 ::scudo::unmap(reinterpret_cast<void *>(Base), Capacity, UNMAP_ALL, &Data); in releaseImpl()
72 Capacity = Size; in createImpl()
H A Dmem_map_fuchsia.cpp88 MemMapFuchsia::MemMapFuchsia(uptr Base, uptr Capacity) in MemMapFuchsia() argument
89 : MapAddr(Base), WindowBase(Base), WindowSize(Capacity) { in MemMapFuchsia()
91 zx_status_t Status = _zx_vmo_create(Capacity, 0, &Vmo); in MemMapFuchsia()
93 dieOnError(Status, "zx_vmo_create", Capacity); in MemMapFuchsia()
236 Capacity = Size; in createImpl()
241 zx_status_t Status = _zx_vmar_unmap(_zx_vmar_root_self(), Base, Capacity); in releaseImpl()
H A Dmem_map_fuchsia.h41 MemMapFuchsia(uptr Base, uptr Capacity);
64 uptr getCapacityImpl() { return Capacity; } in getCapacityImpl()
68 uptr Capacity = 0; variable
H A Dmem_map_linux.h24 MemMapLinux(uptr Base, uptr Capacity) in MemMapLinux() argument
25 : MapBase(Base), MapCapacity(Capacity) {} in MemMapLinux()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTVector.h40 llvm::PointerIntPair<T *, 1, bool> Capacity; variable
47 bool getTag() const { return Capacity.getInt(); } in getTag()
48 void setTag(bool B) { Capacity.setInt(B); } in setTag()
52 ASTVector() : Capacity(nullptr, false) {} in ASTVector()
54 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector()
56 O.Capacity.setPointer(nullptr); in ASTVector()
57 O.Capacity.setInt(false); in ASTVector()
60 ASTVector(const ASTContext &C, unsigned N) : Capacity(nullptr, false) { in ASTVector()
71 swap(Capacity, O.Capacity);
372 return (iterator) Capacity.getPointer(); in capacity_ptr()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DTypeLocBuilder.cpp68 assert(NewCapacity > Capacity); in grow()
72 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
75 Capacity - Index); in grow()
81 Capacity = NewCapacity; in grow()
97 size_t RequiredCapacity = Capacity + (LocalSize - Index); in pushImpl()
98 size_t NewCapacity = Capacity * 2; in pushImpl()
182 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
H A DTypeLocBuilder.h30 size_t Capacity; variable
48 : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity), in TypeLocBuilder()
61 if (Requested > Capacity) in reserve()
87 Index = Capacity; in clear()
115 size_t FullDataSize = Capacity - Index; in getTypeSourceInfo()
128 size_t FullDataSize = Capacity - Index; in getTypeLocInContext()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Support/
H A DBumpVector.h71 T *Capacity = nullptr; variable
169 if (End < Capacity) { in push_back()
184 if (End + Cnt <= Capacity) { in insert()
198 if (unsigned(Capacity-Begin) < N) in reserve()
204 size_t capacity() const { return Capacity - Begin; } in capacity()
235 size_t CurCapacity = Capacity-Begin; in grow()
260 Capacity = Begin+NewCapacity; in grow()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h31 size_t Capacity = 0; member
35 void addNode(size_t Capacity) { in addNode() argument
37 NewHead->Buf = new uint8_t[Capacity]; in addNode()
39 NewHead->Capacity = Capacity; in addNode()
63 if (Head->Used <= Head->Capacity) in allocUnalignedBuffer()
82 if (Head->Used <= Head->Capacity) in allocArray()
101 if (Head->Used <= Head->Capacity) in alloc()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DHashTable.h102 support::ulittle32_t Capacity; member
112 explicit HashTable(uint32_t Capacity) { in HashTable() argument
113 Buckets.resize(Capacity); in HashTable()
120 if (H->Capacity == 0) in load()
123 if (H->Size > maxLoad(H->Capacity)) in load()
127 Buckets.resize(H->Capacity); in load()
183 H.Capacity = capacity(); in commit()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSampleProfileInference.cpp134 assert(Capacity > 0 && "adding an edge of zero capacity"); in addEdge()
140 SrcEdge.Capacity = Capacity; in addEdge()
147 DstEdge.Capacity = 0; in addEdge()
223 assert(Edge.Capacity >= Edge.Flow && "incorrect edge flow"); in computeAugmentingPathCapacity()
224 uint64_t EdgeCapacity = uint64_t(Edge.Capacity - Edge.Flow); in computeAugmentingPathCapacity()
272 if (Edge.Flow < Edge.Capacity) { in findAugmentingPath()
426 if (Edge->Capacity == INF) in augmentFlowAlongDAG()
487 if (Edge->Capacity == Edge->Flow && Edge->AugmentedFlow > 0) in augmentFlowAlongDAG()
517 Edge.Capacity > Edge.Flow && in identifyShortestEdges()
518 uint64_t(Edge.Capacity - Edge.Flow) >= MinCapacity; in identifyShortestEdges()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIntervalMap.h225 enum { Capacity = N }; enumerator
511 assert(n <= NodeT::Capacity && "Size too big for node"); in NodeRef()
1130 if (branched() || rootSize == RootLeaf::Capacity) in insert()
1218 const unsigned Nodes = RootLeaf::Capacity / Leaf::Capacity + 1; in branchRoot()
1259 const unsigned Nodes = RootBranch::Capacity / Branch::Capacity + 1; in splitRoot()
1796 if (IM.rootSize < RootBranch::Capacity) { in insertNode()
1816 if (P.size(Level) == Branch::Capacity) { in insertNode()
1843 if (Size <= RootLeaf::Capacity) { in insert()
1904 if (Size > Leaf::Capacity) { in treeInsert()
2046 if (Elements + 1 > Nodes * NodeT::Capacity) { in overflow()
[all …]
H A DAddressRanges.h72 void reserve(size_t Capacity) { Ranges.reserve(Capacity); } in reserve() argument
H A DSmallVector.h55 Size_T Size = 0, Capacity; variable
64 : BeginX(FirstEl), Capacity(static_cast<Size_T>(TotalCapacity)) {} in SmallVectorBase()
92 size_t capacity() const { return Capacity; } in capacity()
113 Capacity = static_cast<Size_T>(N); in set_allocation_range()
161 this->Size = this->Capacity = 0; // FIXME: Setting Capacity to 0 is suspect. in resetToSmall()
609 this->Capacity = RHS.Capacity; in assignRemote()
988 std::swap(this->Capacity, RHS.Capacity); in swap()
/freebsd-14.2/sys/dev/hptmv/
H A Dgui_lib.c522 pInfo->Capacity = pVDevice->VDeviceCapacity; in hpt_get_device_info()
532 pInfo->Capacity = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info()
546 pInfo->Capacity.lo32 = pVDevice->VDeviceCapacity; in hpt_get_device_info_v2()
547 pInfo->Capacity.hi32 = sizeof(LBA_T)>4? (pVDevice->VDeviceCapacity>>32) : 0; in hpt_get_device_info_v2()
557 pInfo->Capacity.lo32 = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info_v2()
558 pInfo->Capacity.hi32 = 0; in hpt_get_device_info_v2()
824 param2.Capacity.lo32 = param2.Capacity.hi32 = 0; in hpt_create_array()
909 LBA_T Capacity; in hpt_add_disk_to_array() local
935 Capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember - 1); in hpt_add_disk_to_array()
938 if(pDisk->u.disk.dDeRealCapacity < Capacity) return -1; in hpt_add_disk_to_array()
[all …]
H A Dhptintf.h522 DWORD Capacity; /* array capacity */ member
537 LBA64 Capacity; /* array capacity */ member
618 LBA64 Capacity; /* specify array capacity (0 for default) */ member
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.h59 static unsigned constexpr Capacity = std::numeric_limits<uint8_t>::max()+1; member
62 static unsigned constexpr NumWords = Capacity/WordWidth;
63 static_assert(NumWords*WordWidth == Capacity,
121 assert(Pos != Capacity);
126 Pos = End ? Capacity : find_from_pos(0); in const_iterator()
130 assert(Pos != Capacity);
167 return Capacity; in find_from_pos()
/freebsd-14.2/sys/dev/hptrr/
H A Dhptintf.h792 HPT_U32 Capacity; /* array capacity */ member
807 HPT_U64 Capacity; /* array capacity */ member
829 HPT_U64 Capacity; /* array capacity */ member
858 HPT_U64 Capacity; /* array capacity */ member
983 HPT_U64 Capacity; member
1005 HPT_U64 Capacity; member
/freebsd-14.2/sys/dev/hptnr/
H A Dhptintf.h980 HPT_U32 Capacity; /* array capacity */ member
995 HPT_U64 Capacity; /* array capacity */ member
1017 HPT_U64 Capacity; /* array capacity */ member
1046 HPT_U64 Capacity; /* array capacity */ member
1178 HPT_U64 Capacity; member
1202 HPT_U64 Capacity; member
/freebsd-14.2/sys/dev/hpt27xx/
H A Dhptintf.h984 HPT_U32 Capacity; /* array capacity */ member
999 HPT_U64 Capacity; /* array capacity */ member
1021 HPT_U64 Capacity; /* array capacity */ member
1050 HPT_U64 Capacity; /* array capacity */ member
1182 HPT_U64 Capacity; member
1206 HPT_U64 Capacity; member
/freebsd-14.2/sys/contrib/device-tree/Bindings/power/supply/
H A Dmax17040_battery.txt19 SOC == State of Charge == Capacity.

12