/external/v8/src/compiler/ |
D | value-numbering-reducer.cc | 46 : entries_(nullptr), capacity_(0), size_(0), zone_(zone) {} in ValueNumberingReducer() 58 DCHECK(capacity_ == 0); in Reduce() 60 capacity_ = kInitialCapacity; in Reduce() 68 DCHECK(size_ < capacity_); in Reduce() 69 DCHECK(size_ * kCapacityToSizeRatio < capacity_); in Reduce() 71 const size_t mask = capacity_ - 1; in Reduce() 72 size_t dead = capacity_; in Reduce() 77 if (dead != capacity_) { in Reduce() 86 if (size_ * kCapacityToSizeRatio >= capacity_) Grow(); in Reduce() 88 DCHECK(size_ * kCapacityToSizeRatio < capacity_); in Reduce() [all …]
|
D | value-numbering-reducer.h | 28 size_t capacity_; variable
|
/external/webrtc/webrtc/base/ |
D | buffer.h | 96 return capacity_; in capacity() 108 capacity_ = buf.capacity_; 165 if (capacity <= capacity_) in EnsureCapacity() 170 capacity_ = capacity; in EnsureCapacity() 187 capacity_ = 0; in Clear() 195 swap(a.capacity_, b.capacity_); in swap() 205 return (data_ || capacity_ == 0) && capacity_ >= size_; in IsConsistent() 215 capacity_ = 0; in OnMovedFrom() 219 capacity_ = 0; in OnMovedFrom() 224 size_t capacity_; variable
|
D | cryptstring.h | 75 capacity_ = 32; in FormatCryptString() 109 if (capacity_ >= n) { in EnsureStorage() 113 size_t old_capacity = capacity_; in EnsureStorage() 117 capacity_ *= 2; in EnsureStorage() 118 if (capacity_ >= n) in EnsureStorage() 122 storage_ = new char[capacity_]; in EnsureStorage() 137 if (capacity_) { in ~FormatCryptString() 139 for (size_t i = 1; i < capacity_; i++) { in ~FormatCryptString() 147 size_t capacity_; variable
|
D | buffer.cc | 18 Buffer::Buffer() : size_(0), capacity_(0), data_(nullptr) { in Buffer() 27 capacity_(buf.capacity()), in Buffer() 38 capacity_(std::max(size, capacity)), in Buffer() 39 data_(new uint8_t[capacity_]) { in Buffer()
|
D | bufferqueue.cc | 16 : capacity_(capacity), default_size_(default_size) { in BufferQueue() 41 bool was_writable = queue_.size() < capacity_; in ReadFront() 60 if (queue_.size() == capacity_) { in WriteBack()
|
/external/vixl/src/vixl/ |
D | code-buffer.cc | 33 CodeBuffer::CodeBuffer(size_t capacity) : managed_(true), capacity_(capacity) { in CodeBuffer() 34 VIXL_CHECK(capacity_ != 0); in CodeBuffer() 35 buffer_ = reinterpret_cast<byte*>(malloc(capacity_)); in CodeBuffer() 51 capacity_(capacity) { in CodeBuffer() 90 memset(buffer_, 0, capacity_); in Reset() 100 VIXL_ASSERT(new_capacity > capacity_); in Grow() 106 capacity_ = new_capacity; in Grow()
|
D | code-buffer.h | 60 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in RemainingBytes() 61 return (buffer_ + capacity_) - cursor_; in RemainingBytes() 77 size_t capacity() const { return capacity_; } in capacity() 107 size_t capacity_; variable
|
/external/webrtc/webrtc/modules/video_coding/ |
D | timestamp_map.cc | 21 capacity_(capacity), in VCMTimestampMap() 30 next_add_idx_ = (next_add_idx_ + 1) % capacity_; in Add() 34 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Add() 44 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Pop() 53 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Pop()
|
D | timestamp_map.h | 40 const size_t capacity_; variable
|
/external/opencv3/modules/flann/include/opencv2/flann/ |
D | result_set.h | 94 KNNSimpleResultSet(int capacity_) : capacity(capacity_), count(0) in KNNSimpleResultSet() argument 161 KNNResultSet(int capacity_) : capacity(capacity_), count(0) in KNNResultSet() argument 238 RadiusResultSet(DistanceType radius_, int* indices_, DistanceType* dists_, int capacity_) : in RadiusResultSet() argument 239 radius(radius_), indices(indices_), dists(dists_), capacity(capacity_) in RadiusResultSet() 395 KNNUniqueResultSet(unsigned int capacity) : capacity_(capacity) in KNNUniqueResultSet() 412 if (dist_indices_.size() > capacity_) { in addPoint() 417 else if (dist_indices_.size() == capacity_) { in addPoint() 439 unsigned int capacity_; variable 516 this->capacity_ = capacity; in KNNRadiusUniqueResultSet() 518 this->dist_indices_.reserve(capacity_); in KNNRadiusUniqueResultSet() [all …]
|
/external/v8/src/ |
D | hashmap.h | 68 uint32_t capacity() const { return capacity_; } in capacity() 89 uint32_t capacity_; variable 92 Entry* map_end() const { return map_ + capacity_; } in map_end() 140 if (occupancy_ + occupancy_ / 4 >= capacity_) { in LookupOrInsert() 173 DCHECK(occupancy_ < capacity_); in Remove() 192 Entry* r = map_ + (q->hash & (capacity_ - 1)); in Remove() 248 DCHECK(base::bits::IsPowerOfTwo32(capacity_)); in Probe() 249 Entry* p = map_ + (hash & (capacity_ - 1)); in Probe() 253 DCHECK(occupancy_ < capacity_); // Guarantees loop termination. in Probe() 274 capacity_ = capacity; in Initialize() [all …]
|
D | list-inl.h | 19 if (length_ < capacity_) { in Add() 36 if (capacity_ < result_length) Resize(result_length, alloc); in AddAll() 56 DCHECK(length_ >= capacity_); in ResizeAddInternal() 59 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() 75 capacity_ = new_capacity; in Resize() 132 std::swap(capacity_, list->capacity_); in Swap() 149 capacity_ = 0; in Clear() 163 if (length_ < capacity_ / 4) { in Trim() 164 Resize(capacity_ / 2, alloc); in Trim()
|
D | string-stream.h | 106 capacity_(kInitialCapacity), in allocator_() 171 unsigned capacity_; variable 175 bool full() const { return (capacity_ - length_) == 1; } in full() 176 int space() const { return capacity_ - length_; } in space()
|
D | string-stream.cc | 35 DCHECK(length_ < capacity_); in Put() 39 if (length_ == capacity_ - 2) { in Put() 40 unsigned new_capacity = capacity_; in Put() 42 if (new_capacity > capacity_) { in Put() 43 capacity_ = new_capacity; in Put() 47 DCHECK(capacity_ >= 5); in Put() 48 length_ = capacity_ - 1; // Indicate fullness of the stream. in Put()
|
D | list.h | 81 INLINE(int capacity() const) { return capacity_; } in INLINE() 172 capacity_ = capacity; 178 int capacity_; variable
|
/external/icu/icu4c/source/i18n/ |
D | collationkeys.h | 33 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 44 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 62 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 65 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 75 capacity_ = 0; in SetNotOk() 79 int32_t capacity_; variable
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | audio_vector.cc | 24 capacity_(kDefaultInitialSize) { in AudioVector() 30 capacity_(initial_size) { in AudioVector() 43 assert(copy_to->capacity_ >= Size()); in CopyTo() 115 position = std::min(capacity_, position); in InsertZerosAt() 182 if (capacity_ < n) { in Reserve() 186 capacity_ = n; in Reserve()
|
/external/icu/icu4c/source/common/ |
D | bytestream.cpp | 30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 47 int32_t available = capacity_ - size_; in Append() 67 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/external/v8/src/crankshaft/ |
D | unique.h | 150 UniqueSet() : size_(0), capacity_(0), array_(NULL) { } in UniqueSet() 154 : size_(0), capacity_(capacity), in UniqueSet() 161 : size_(1), capacity_(1), array_(zone->NewArray<Unique<T> >(1)) { in UniqueSet() 340 uint16_t capacity_; variable 346 if (capacity_ < size) { in Grow() 347 int new_capacity = 2 * capacity_ + size; in Grow() 353 capacity_ = new_capacity; in Grow()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common.h | 478 capacity_ = Max(initial_capacity, (uptr)1); in Initialize() 480 data_ = (T *)MmapOrDie(capacity_ * sizeof(T), "InternalMmapVectorNoCtor"); in Initialize() 483 UnmapOrDie(data_, capacity_ * sizeof(T)); in Destroy() 494 CHECK_LE(size_, capacity_); in push_back() 495 if (size_ == capacity_) { in push_back() 519 return capacity_; in capacity() 534 UnmapOrDie(old_data, capacity_ * sizeof(T)); in Resize() 535 capacity_ = new_capacity; in Resize() 539 uptr capacity_; variable
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe.h | 73 explicit LinkedSet(int capacity) : capacity_(capacity) {} in LinkedSet() 92 size_t capacity() const { return capacity_; } in capacity() 106 size_t capacity_; variable
|
/external/v8/src/interpreter/ |
D | constant-array-builder.h | 74 inline size_t capacity() const { return capacity_; } in capacity() 80 const size_t capacity_; member
|
/external/libweave/src/ |
D | access_black_list_manager_impl.cc | 28 : capacity_{capacity}, clock_{clock}, store_{store} { in AccessBlackListManagerImpl() 104 if (entries_.size() >= capacity_) { in Block() 160 return capacity_; in GetCapacity()
|
/external/v8/src/heap/ |
D | spaces.h | 1246 return capacity_ < size ? 0 : capacity_ - size; in Available() 1345 intptr_t capacity_; variable 1543 capacity_ = 0; in Clear() 1548 void ClearSize() { size_ = capacity_; } in ClearSize() 1557 intptr_t Capacity() { return capacity_; } in Capacity() 1568 capacity_ += size_in_bytes; in ExpandSpace() 1570 if (capacity_ > max_capacity_) { in ExpandSpace() 1571 max_capacity_ = capacity_; in ExpandSpace() 1580 capacity_ -= size_in_bytes; in ShrinkSpace() 1599 capacity_ += other.capacity_; in Merge() [all …]
|