Home | History | Annotate | Download | only in Support

Lines Matching refs:Capacity

50     __asan_unpoison_memory_region(Entry, Capacity::get(Idx).getSize());
52 __msan_allocated_memory(Entry, Capacity::get(Idx).getSize());
64 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize());
68 /// The size of an allocated array is represented by a Capacity instance.
72 class Capacity {
74 explicit Capacity(uint8_t idx) : Index(idx) {}
77 Capacity() : Index(0) {}
79 /// Get the capacity of an array that can hold at least N elements.
80 static Capacity get(size_t N) {
81 return Capacity(N ? Log2_64_Ceil(N) : 0);
84 /// Get the number of elements in an array with this capacity.
87 /// Get the bucket number for this capacity.
90 /// Get the next larger capacity. Large capacities grow exponentially, so
93 Capacity getNext() const { return Capacity(Index + 1); }
120 /// Allocate an array of at least the requested capacity.
126 T *allocate(Capacity Cap, AllocatorType &Allocator) {
134 /// Deallocate an array with the specified Capacity.
136 /// Cap must be the same capacity that was given to allocate().
138 void deallocate(Capacity Cap, T *Ptr) {