Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/compiler-rt/lib/esan/
H A Desan_circular_buffer.h38 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 …]
H A Desan_hashtable.h122 u32 Capacity; variable
140 CHECK(IsPowerOfTwo(Capacity)); in HashTable()
149 for (u32 i = 0; i < Capacity; ++i) { in ~HashTable()
180 size_t Hash = HashFunc(Key) % Capacity; in lookup()
199 size_t OldCapacity = Capacity; in resize()
201 Capacity *= 2; in resize()
224 size_t Hash = HashFunc(Key) % Capacity; in add()
236 Hash = HashFunc(Key) % Capacity; in add()
256 size_t Hash = HashFunc(Key) % Capacity; in remove()
333 if (Idx >= (int)Table->Capacity)
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DArrayRecycler.h50 __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 …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h95 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray()
98 A.Capacity = 0; in SimpleArray()
105 Capacity = RHS.Capacity;
108 RHS.Size = RHS.Capacity = 0;
115 if (Ncp <= Capacity) in reserve()
119 Capacity = Ncp; in reserve()
125 if (Capacity == 0) in reserveCheck()
127 else if (Size + N < Capacity) in reserveCheck()
180 assert(Size < Capacity); in push_back()
191 assert(Sz <= Capacity); in setValues()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A 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()
160 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
H A 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()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DASTVector.h41 llvm::PointerIntPair<T *, 1, bool> Capacity; variable
48 bool getTag() const { return Capacity.getInt(); } in getTag()
49 void setTag(bool B) { Capacity.setInt(B); } in setTag()
53 ASTVector() : Capacity(nullptr, false) {} in ASTVector()
55 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector()
57 O.Capacity.setPointer(nullptr); in ASTVector()
58 O.Capacity.setInt(false); in ASTVector()
61 ASTVector(const ASTContext &C, unsigned N) : Capacity(nullptr, false) { in ASTVector()
72 swap(Capacity, O.Capacity);
373 return (iterator) Capacity.getPointer(); in capacity_ptr()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/Support/
H A DBumpVector.h63 T *Capacity = nullptr; variable
161 if (End < Capacity) { in push_back()
176 if (End + Cnt <= Capacity) { in insert()
190 if (unsigned(Capacity-Begin) < N) in reserve()
196 size_t capacity() const { return Capacity - Begin; } in capacity()
227 size_t CurCapacity = Capacity-Begin; in grow()
252 Capacity = Begin+NewCapacity; in grow()
/freebsd-12.1/contrib/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h33 size_t Capacity = 0; member
37 void addNode(size_t Capacity) { in addNode() argument
39 NewHead->Buf = new uint8_t[Capacity]; in addNode()
41 NewHead->Capacity = Capacity; in addNode()
63 if (Head->Used > Head->Capacity) { in allocUnalignedBuffer()
87 if (Head->Used < Head->Capacity) in allocArray()
107 if (Head->Used < Head->Capacity) in alloc()
/freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/PDB/Native/
H A DHashTable.h111 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();
/freebsd-12.1/contrib/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.cpp65 this->Capacity = NewCapacity; in grow_pod()
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DSmallVector.h42 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;
H A DIntervalMap.h223 enum { Capacity = N }; enumerator
509 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()
1745 if (IM.rootSize < RootBranch::Capacity) { in insertNode()
1765 if (P.size(Level) == Branch::Capacity) { in insertNode()
1792 if (Size <= RootLeaf::Capacity) { in insert()
1853 if (Size > Leaf::Capacity) { in treeInsert()
1995 if (Elements + 1 > Nodes * NodeT::Capacity) { in overflow()
[all …]
H A DBitVector.h140 size_t Capacity = NumBitWords(s); in Size() local
141 Bits = allocate(Capacity); in Size()
154 size_t Capacity = NumBitWords(RHS.size()); in BitVector() local
155 Bits = allocate(Capacity); in BitVector()
156 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); in BitVector()
/freebsd-12.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-12.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-12.1/contrib/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.h60 static unsigned constexpr Capacity = std::numeric_limits<uint8_t>::max()+1; member
63 static unsigned constexpr NumWords = Capacity/WordWidth;
64 static_assert(NumWords*WordWidth == Capacity,
120 assert(Pos != Capacity);
125 Pos = End ? Capacity : find_from_pos(0); in const_iterator()
129 assert(Pos != Capacity);
166 return Capacity; in find_from_pos()
/freebsd-12.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-12.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-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGCleanup.cpp116 unsigned Capacity = 1024; in allocate() local
117 while (Capacity < Size) Capacity *= 2; in allocate()
118 StartOfBuffer = new char[Capacity]; in allocate()
119 StartOfData = EndOfBuffer = StartOfBuffer + Capacity; in allocate()
/freebsd-12.1/sys/dev/aacraid/
H A Daacraid_cam.c720 scsi_ulto4b(co->co_mntobj.Capacity-1, p->addr); in aac_container_special_command()
744 scsi_ulto4b(co->co_mntobj.Capacity-1, &p->addr[4]); in aac_container_special_command()
786 if (co->co_mntobj.Capacity > 0xffffff || in aac_container_special_command()
793 (co->co_mntobj.Capacity >> 16); in aac_container_special_command()
795 (co->co_mntobj.Capacity >> 8); in aac_container_special_command()
797 (co->co_mntobj.Capacity); in aac_container_special_command()
/freebsd-12.1/tools/diag/prtblknos/
H A DREADME9 Filesystem 1K-blocks Used Avail Capacity Mounted on

12