Home
last modified time | relevance | path

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

12

/freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/clang/lib/Sema/
H A DTypeLocBuilder.cpp45 assert(NewCapacity > Capacity); in grow()
49 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
52 Capacity - Index); in grow()
58 Capacity = NewCapacity; in grow()
74 size_t RequiredCapacity = Capacity + (LocalSize - Index); in pushImpl()
75 size_t NewCapacity = Capacity * 2; in pushImpl()
159 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
H A DTypeLocBuilder.h30 size_t Capacity; variable
47 : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity), in TypeLocBuilder()
57 if (Requested > Capacity) in reserve()
79 Index = Capacity; in clear()
106 size_t FullDataSize = Capacity - Index; in getTypeSourceInfo()
119 size_t FullDataSize = Capacity - Index; in getTypeLocInContext()
/freebsd-13.1/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-13.1/contrib/llvm-project/clang/include/clang/Analysis/Support/
H A DBumpVector.h62 T *Capacity = nullptr; variable
160 if (End < Capacity) { in push_back()
175 if (End + Cnt <= Capacity) { in insert()
189 if (unsigned(Capacity-Begin) < N) in reserve()
195 size_t capacity() const { return Capacity - Begin; } in capacity()
226 size_t CurCapacity = Capacity-Begin; in grow()
251 Capacity = Begin+NewCapacity; in grow()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h32 size_t Capacity = 0; member
36 void addNode(size_t Capacity) { in addNode() argument
38 NewHead->Buf = new uint8_t[Capacity]; in addNode()
40 NewHead->Capacity = Capacity; in addNode()
64 if (Head->Used <= Head->Capacity) in allocUnalignedBuffer()
83 if (Head->Used <= Head->Capacity) in allocArray()
102 if (Head->Used <= Head->Capacity) in alloc()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DHashTable.h106 support::ulittle32_t Capacity; member
116 explicit HashTable(uint32_t Capacity) { in HashTable() argument
117 Buckets.resize(Capacity); in HashTable()
124 if (H->Capacity == 0) in load()
127 if (H->Size > maxLoad(H->Capacity)) in load()
131 Buckets.resize(H->Capacity); in load()
187 H.Capacity = capacity(); in commit()
/freebsd-13.1/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()
H A DSmallVector.cpp126 this->Capacity = NewCapacity; in grow_pod()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIntervalMap.h227 enum { Capacity = N }; enumerator
513 assert(n <= NodeT::Capacity && "Size too big for node"); in NodeRef()
1084 if (branched() || rootSize == RootLeaf::Capacity) in insert()
1172 const unsigned Nodes = RootLeaf::Capacity / Leaf::Capacity + 1; in branchRoot()
1213 const unsigned Nodes = RootBranch::Capacity / Branch::Capacity + 1; in splitRoot()
1750 if (IM.rootSize < RootBranch::Capacity) { in insertNode()
1770 if (P.size(Level) == Branch::Capacity) { in insertNode()
1797 if (Size <= RootLeaf::Capacity) { in insert()
1858 if (Size > Leaf::Capacity) { in treeInsert()
2000 if (Elements + 1 > Nodes * NodeT::Capacity) { in overflow()
[all …]
H A DSmallVector.h48 Size_T Size = 0, Capacity; variable
57 : BeginX(FirstEl), Capacity(TotalCapacity) {} in SmallVectorBase()
71 size_t capacity() const { return Capacity; } in capacity()
134 this->Size = this->Capacity = 0; // FIXME: Setting Capacity to 0 is suspect. in resetToSmall()
451 this->Capacity = NewCapacity; in takeAllocationForGrow()
943 std::swap(this->Capacity, RHS.Capacity); in swap()
1030 this->Capacity = RHS.Capacity;
/freebsd-13.1/sys/dev/hptmv/
H A Dgui_lib.c524 pInfo->Capacity = pVDevice->VDeviceCapacity; in hpt_get_device_info()
534 pInfo->Capacity = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info()
548 pInfo->Capacity.lo32 = pVDevice->VDeviceCapacity; in hpt_get_device_info_v2()
549 pInfo->Capacity.hi32 = sizeof(LBA_T)>4? (pVDevice->VDeviceCapacity>>32) : 0; in hpt_get_device_info_v2()
559 pInfo->Capacity.lo32 = pVDevice->u.disk.dDeRealCapacity; in hpt_get_device_info_v2()
560 pInfo->Capacity.hi32 = 0; in hpt_get_device_info_v2()
826 param2.Capacity.lo32 = param2.Capacity.hi32 = 0; in hpt_create_array()
911 LBA_T Capacity; in hpt_add_disk_to_array() local
937 Capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember - 1); in hpt_add_disk_to_array()
940 if(pDisk->u.disk.dDeRealCapacity < Capacity) return -1; in hpt_add_disk_to_array()
[all …]
H A Dhptintf.h524 DWORD Capacity; /* array capacity */ member
539 LBA64 Capacity; /* array capacity */ member
620 LBA64 Capacity; /* specify array capacity (0 for default) */ member
H A Darray.h128 ULONG Capacity; /* capacity for the array */ member
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.h57 static unsigned constexpr Capacity = std::numeric_limits<uint8_t>::max()+1; member
60 static unsigned constexpr NumWords = Capacity/WordWidth;
61 static_assert(NumWords*WordWidth == Capacity,
117 assert(Pos != Capacity);
122 Pos = End ? Capacity : find_from_pos(0); in const_iterator()
126 assert(Pos != Capacity);
163 return Capacity; in find_from_pos()
/freebsd-13.1/sys/dev/hptrr/
H A Dhptintf.h794 HPT_U32 Capacity; /* array capacity */ member
809 HPT_U64 Capacity; /* array capacity */ member
831 HPT_U64 Capacity; /* array capacity */ member
860 HPT_U64 Capacity; /* array capacity */ member
985 HPT_U64 Capacity; member
1007 HPT_U64 Capacity; member
/freebsd-13.1/sys/dev/hpt27xx/
H A Dhptintf.h986 HPT_U32 Capacity; /* array capacity */ member
1001 HPT_U64 Capacity; /* array capacity */ member
1023 HPT_U64 Capacity; /* array capacity */ member
1052 HPT_U64 Capacity; /* array capacity */ member
1184 HPT_U64 Capacity; member
1208 HPT_U64 Capacity; member
/freebsd-13.1/sys/dev/hptnr/
H A Dhptintf.h982 HPT_U32 Capacity; /* array capacity */ member
997 HPT_U64 Capacity; /* array capacity */ member
1019 HPT_U64 Capacity; /* array capacity */ member
1048 HPT_U64 Capacity; /* array capacity */ member
1180 HPT_U64 Capacity; member
1204 HPT_U64 Capacity; member
/freebsd-13.1/sys/dev/aacraid/
H A Daacraid_cam.c709 scsi_ulto4b(co->co_mntobj.Capacity-1, p->addr); in aac_container_special_command()
733 scsi_ulto4b(co->co_mntobj.Capacity-1, &p->addr[4]); in aac_container_special_command()
775 if (co->co_mntobj.Capacity > 0xffffff || in aac_container_special_command()
782 (co->co_mntobj.Capacity >> 16); in aac_container_special_command()
784 (co->co_mntobj.Capacity >> 8); in aac_container_special_command()
786 (co->co_mntobj.Capacity); in aac_container_special_command()
/freebsd-13.1/tools/diag/prtblknos/
H A DREADME9 Filesystem 1K-blocks Used Avail Capacity Mounted on
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp109 unsigned Capacity = 1024; in allocate() local
110 while (Capacity < Size) Capacity *= 2; in allocate()
111 StartOfBuffer = new char[Capacity]; in allocate()
112 StartOfData = EndOfBuffer = StartOfBuffer + Capacity; in allocate()
/freebsd-13.1/lib/libefivar/
H A Defivar-dp-format.c111 if ((Str->Count + (Count + 1)) > Str->Capacity) { in UefiDevicePathLibCatPrint()
112 Str->Capacity = (Str->Count + (Count + 1) * 2); in UefiDevicePathLibCatPrint()
113 Str->Str = reallocf(Str->Str, Str->Capacity); in UefiDevicePathLibCatPrint()
117 vsnprintf(Str->Str + Str->Count, Str->Capacity - Str->Count, Fmt, Args); in UefiDevicePathLibCatPrint()
H A Duefi-dplib.h80 UINTN Capacity; member
/freebsd-13.1/sys/dev/aac/
H A Daac_disk.c383 sc->ad_size = sc->ad_container->co_mntobj.Capacity; in aac_disk_attach()

12