HomeSort by relevance Sort by last modified time
    Searched refs:Capacity (Results 1 - 25 of 306) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/compiler-rt/lib/esan/
esan_circular_buffer.h 38 Capacity = BufferCapacity;
40 Data = (T *)MmapOrDie(Capacity * sizeof(T), "CircularBuffer");
46 UnmapOrDie(Data, Capacity * sizeof(T));
50 uptr ArrayIdx = (StartIdx + Idx) % Capacity;
55 uptr ArrayIdx = (StartIdx + Idx) % Capacity;
59 CHECK_GT(Capacity, 0);
60 uptr ArrayIdx = (StartIdx + Count) % Capacity;
62 if (Count < Capacity)
65 StartIdx = (StartIdx + 1) % Capacity;
69 uptr ArrayIdx = (StartIdx + Count - 1) % Capacity;
    [all...]
  /frameworks/native/libs/vr/libpdx/private/pdx/rpc/
message_buffer.h 14 template <typename Slot, std::size_t Capacity = 4096, typename T = std::uint8_t,
16 using MessageBuffer = ThreadLocalBuffer<T, Allocator, Capacity, Slot>;
thread_local_buffer.h 29 // Initial capacity of thread local buffer, unless otherwise specified.
39 // Slot provides multiple thread local slots for a given T, Allocator, Capacity
42 std::size_t Capacity = InitialBufferCapacity,
49 // Reserves |capacity| number of elements of capacity in the underlying
51 static void Reserve(std::size_t capacity) {
53 InitializeBuffer(capacity);
54 buffer_->reserve(capacity);
64 // Gets a reference to the underlying buffer after reserving |capacity|
67 static BufferType& GetBuffer(std::size_t capacity = Capacity)
    [all...]
  /external/llvm/include/llvm/Support/
ArrayRecycler.h 66 /// The size of an allocated array is represented by a Capacity instance.
70 class Capacity {
72 explicit Capacity(uint8_t idx) : Index(idx) {}
75 Capacity() : Index(0) {}
77 /// Get the capacity of an array that can hold at least N elements.
78 static Capacity get(size_t N) {
79 return Capacity(N ? Log2_64_Ceil(N) : 0);
82 /// Get the number of elements in an array with this capacity.
85 /// Get the bucket number for this capacity.
88 /// Get the next larger capacity. Large capacities grow exponentially, s
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Support/
ArrayRecycler.h 65 /// The size of an allocated array is represented by a Capacity instance.
69 class Capacity {
71 explicit Capacity(uint8_t idx) : Index(idx) {}
74 Capacity() : Index(0) {}
76 /// Get the capacity of an array that can hold at least N elements.
77 static Capacity get(size_t N) {
78 return Capacity(N ? Log2_64_Ceil(N) : 0);
81 /// Get the number of elements in an array with this capacity.
84 /// Get the bucket number for this capacity.
87 /// Get the next larger capacity. Large capacities grow exponentially, s
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Support/
ArrayRecycler.h 65 /// The size of an allocated array is represented by a Capacity instance.
69 class Capacity {
71 explicit Capacity(uint8_t idx) : Index(idx) {}
74 Capacity() : Index(0) {}
76 /// Get the capacity of an array that can hold at least N elements.
77 static Capacity get(size_t N) {
78 return Capacity(N ? Log2_64_Ceil(N) : 0);
81 /// Get the number of elements in an array with this capacity.
84 /// Get the bucket number for this capacity.
87 /// Get the next larger capacity. Large capacities grow exponentially, s
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4479392/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4639204/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4691093/include/llvm/Support/
ArrayRecycler.h 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)
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
BitVector.h 33 unsigned Capacity; // Size of allocated memory in BitWord.
73 BitVector() : Size(0), Capacity(0) {
80 Capacity = NumBitWords(s);
81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
82 init_words(Bits, Capacity, t);
91 Capacity = 0;
95 Capacity = NumBitWords(RHS.size());
96 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
97 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord));
199 if (N > Capacity * BITWORD_SIZE)
    [all...]
  /external/clang/lib/Sema/
TypeLocBuilder.cpp 46 assert(NewCapacity > Capacity);
50 unsigned NewIndex = Index + NewCapacity - Capacity;
53 Capacity - Index);
59 Capacity = NewCapacity;
75 size_t RequiredCapacity = Capacity + (LocalSize - Index);
76 size_t NewCapacity = Capacity * 2;
160 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) &&
  /external/llvm/unittests/Support/
ArrayRecyclerTest.cpp 25 TEST(ArrayRecyclerTest, Capacity) {
26 // Capacity size should never be 0.
27 ARO::Capacity Cap = ARO::Capacity::get(0);
32 Cap = ARO::Capacity::get(N);
42 Cap = ARO::Capacity::get(0);
55 ARO::Capacity Cap = ARO::Capacity::get(8);
  /external/clang/include/clang/Analysis/Analyses/
ThreadSafetyUtil.h 84 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {}
86 : Data(Dat), Size(Sz), Capacity(Cp) {}
88 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {}
90 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) {
93 A.Capacity = 0;
100 Capacity = RHS.Capacity;
103 RHS.Size = RHS.Capacity = 0;
110 if (Ncp <= Capacity)
132 size_t capacity() const { return Capacity; } function in class:clang::threadSafety::til::SimpleArray
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Analysis/Analyses/
ThreadSafetyUtil.h 84 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {}
86 : Data(Dat), Size(Sz), Capacity(Cp) {}
88 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {}
90 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) {
93 A.Capacity = 0;
100 Capacity = RHS.Capacity;
103 RHS.Size = RHS.Capacity = 0;
110 if (Ncp <= Capacity)
132 size_t capacity() const { return Capacity; } function in class:clang::threadSafety::til::SimpleArray
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/clang/Analysis/Analyses/
ThreadSafetyUtil.h 84 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {}
86 : Data(Dat), Size(Sz), Capacity(Cp) {}
88 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {}
90 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) {
93 A.Capacity = 0;
100 Capacity = RHS.Capacity;
103 RHS.Size = RHS.Capacity = 0;
110 if (Ncp <= Capacity)
132 size_t capacity() const { return Capacity; } function in class:clang::threadSafety::til::SimpleArray
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/clang/Analysis/Analyses/
ThreadSafetyUtil.h 84 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {}
86 : Data(Dat), Size(Sz), Capacity(Cp) {}
88 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {}
90 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) {
93 A.Capacity = 0;
100 Capacity = RHS.Capacity;
103 RHS.Size = RHS.Capacity = 0;
110 if (Ncp <= Capacity)
132 size_t capacity() const { return Capacity; } function in class:clang::threadSafety::til::SimpleArray
    [all...]

Completed in 951 milliseconds

1 2 3 4 5 6 7 8 91011>>