/external/chromium_org/third_party/android_crazy_linker/src/src/ |
D | crazy_linker_util.cpp | 73 size_t new_capacity = capacity_; in Resize() local 74 while (new_capacity < new_size) { in Resize() 75 new_capacity += (new_capacity >> 1) + 16; in Resize() 77 Reserve(new_capacity); in Resize() 88 void String::Reserve(size_t new_capacity) { in Reserve() argument 91 ptr_ = reinterpret_cast<char*>(realloc(old_ptr, new_capacity + 1)); in Reserve() 92 ptr_[new_capacity] = '\0'; in Reserve() 93 capacity_ = new_capacity; in Reserve() 95 if (size_ > new_capacity) in Reserve() 96 size_ = new_capacity; in Reserve()
|
D | crazy_linker_line_reader.cpp | 105 size_t new_capacity = buff_capacity_ * 2; in GetNextLine() local 107 buff_ = static_cast<char*>(::realloc(old_buff, new_capacity)); in GetNextLine() 111 buff_capacity_ = new_capacity; in GetNextLine()
|
D | crazy_linker_util.h | 112 void Reserve(size_t new_capacity); 186 void Reserve(size_t new_capacity); 236 void Vector<T>::Reserve(size_t new_capacity) { in Reserve() argument 237 items_ = reinterpret_cast<T*>(realloc(items_, new_capacity * sizeof(T))); in Reserve() 238 capacity_ = new_capacity; in Reserve()
|
/external/valgrind/main/drd/ |
D | drd_vc.c | 36 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity); 311 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity) in DRD_() 318 if (new_capacity > vc->capacity) in DRD_() 326 vc->vc, new_capacity * sizeof(vc->vc[0])); in DRD_() 328 else if (vc->vc && new_capacity > VC_PREALLOCATED) in DRD_() 331 && new_capacity > VC_PREALLOCATED in DRD_() 334 new_capacity * sizeof(vc->vc[0])); in DRD_() 341 && new_capacity <= VC_PREALLOCATED in DRD_() 344 else if (new_capacity > VC_PREALLOCATED) in DRD_() 347 && new_capacity > VC_PREALLOCATED in DRD_() [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/ |
D | mem_fs_node.cc | 99 size_t new_capacity = data_capacity_; in Resize() local 104 new_capacity = new_size + extra; in Resize() 107 new_capacity = new_size; in Resize() 110 if (new_capacity != data_capacity_) { in Resize() 111 data_ = (char*)realloc(data_, new_capacity); in Resize() 112 if (new_capacity != 0) { in Resize() 117 data_capacity_ = new_capacity; in Resize()
|
/external/chromium_org/net/server/ |
D | http_connection.cc | 41 int new_capacity = GetCapacity() * kCapacityIncreaseFactor; in IncreaseCapacity() local 42 if (new_capacity > max_buffer_size_) in IncreaseCapacity() 43 new_capacity = max_buffer_size_; in IncreaseCapacity() 44 SetCapacity(new_capacity); in IncreaseCapacity() 80 int new_capacity = GetCapacity() / kCapacityIncreaseFactor; in DidConsume() local 81 if (new_capacity < kMinimumBufSize) in DidConsume() 82 new_capacity = kMinimumBufSize; in DidConsume() 88 SetCapacity(new_capacity); in DidConsume()
|
/external/chromium_org/third_party/webrtc/base/ |
D | atomicops.h | 121 void ClearAndResizeUnsafe(int new_capacity) { in ClearAndResizeUnsafe() argument 122 capacity_ = new_capacity; in ClearAndResizeUnsafe() 123 data_.reset(new T[new_capacity]); in ClearAndResizeUnsafe()
|
/external/chromium_org/v8/src/ |
D | list-inl.h | 56 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() local 60 Resize(new_capacity, alloc); in ResizeAddInternal() 66 void List<T, P>::Resize(int new_capacity, P alloc) { in Resize() argument 67 DCHECK_LE(length_, new_capacity); in Resize() 68 T* new_data = NewData(new_capacity, alloc); in Resize() 72 capacity_ = new_capacity; in Resize()
|
D | ostreams.cc | 145 size_t new_capacity = // Handle possible overflow by not doubling. in reserve() local 147 char * new_data = allocate(new_capacity); in reserve() 150 capacity_ = new_capacity; in reserve()
|
D | unique.h | 333 int new_capacity = 2 * capacity_ + size; in Grow() local 334 if (new_capacity > kMaxCapacity) new_capacity = kMaxCapacity; in Grow() 335 Unique<T>* new_array = zone->NewArray<Unique<T> >(new_capacity); in Grow() 339 capacity_ = new_capacity; in Grow()
|
D | utils.h | 573 int new_capacity; 577 new_capacity = min_capacity * growth_factor; 578 if (new_capacity < kMinCapacity) new_capacity = kMinCapacity; 584 new_capacity = current_length + growth; 585 if (new_capacity < min_capacity) { 586 new_capacity = min_capacity + growth; 589 NewChunk(new_capacity); 597 virtual void NewChunk(int new_capacity) { 598 Vector<T> new_chunk = Vector<T>::New(new_capacity); 660 virtual void NewChunk(int new_capacity) { [all …]
|
D | string-stream.cc | 28 unsigned new_capacity = capacity_; in Put() local 29 char* new_buffer = allocator_->grow(&new_capacity); in Put() 30 if (new_capacity > capacity_) { in Put() 31 capacity_ = new_capacity; in Put()
|
D | scanner.h | 259 int new_capacity = Min(capacity * kGrowthFactory, capacity + kMaxGrowth); in NewCapacity() local 260 return new_capacity; in NewCapacity()
|
D | list.h | 177 void Resize(int new_capacity, AllocationPolicy allocator);
|
/external/flac/libFLAC/ |
D | bitwriter.c | 87 unsigned new_capacity; in bitwriter_grow_() local 94 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_() 99 if(bw->capacity >= new_capacity) in bitwriter_grow_() 103 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_() 104 …new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_() 106 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_() 107 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_() 108 …FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLA… in bitwriter_grow_() 110 new_buffer = safe_realloc_mul_2op_(bw->buffer, sizeof(uint32_t), /*times*/new_capacity); in bitwriter_grow_() 114 bw->capacity = new_capacity; in bitwriter_grow_()
|
/external/chromium_org/base/ |
D | pickle.cc | 308 void Pickle::Resize(size_t new_capacity) { in Resize() argument 309 new_capacity = AlignInt(new_capacity, kPayloadUnit); in Resize() 312 void* p = realloc(header_, header_size_ + new_capacity); in Resize() 315 capacity_after_header_ = new_capacity; in Resize()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common.h | 381 uptr new_capacity = RoundUpToPowerOfTwo(size_ + 1); in push_back() local 382 Resize(new_capacity); in push_back() 407 void Resize(uptr new_capacity) { in Resize() argument 408 CHECK_GT(new_capacity, 0); in Resize() 409 CHECK_LE(size_, new_capacity); in Resize() 410 T *new_data = (T *)MmapOrDie(new_capacity * sizeof(T), in Resize() 416 capacity_ = new_capacity; in Resize()
|
/external/qemu/distrib/mini-glib/src/ |
D | glib-mini.c | 566 guint new_capacity = HASH_MIN_CAPACITY; in _g_hash_table_resize() local 567 while (new_capacity < new_size) in _g_hash_table_resize() 568 new_capacity <<= 1; in _g_hash_table_resize() 570 GHashEntry* new_entries = g_new0(GHashEntry, new_capacity); in _g_hash_table_resize() 579 guint probe_mask = (new_capacity - 1); in _g_hash_table_resize() 593 hash_table->capacity = new_capacity; in _g_hash_table_resize()
|
/external/protobuf/gtest/src/ |
D | gtest-internal-inl.h | 451 void Reserve(int new_capacity) { in Reserve() argument 452 if (new_capacity <= capacity_) in Reserve() 455 capacity_ = new_capacity; in Reserve() 468 const int new_capacity = 3*(capacity_/2 + 1); in GrowIfNeeded() local 469 GTEST_CHECK_(new_capacity > capacity_) // Does the new capacity overflow? in GrowIfNeeded() 471 Reserve(new_capacity); in GrowIfNeeded()
|
/external/chromium_org/v8/src/heap/ |
D | spaces.cc | 1263 int new_capacity = in Grow() local 1265 if (to_space_.GrowTo(new_capacity)) { in Grow() 1267 if (!from_space_.GrowTo(new_capacity)) { in Grow() 1282 int new_capacity = Max(InitialTotalCapacity(), 2 * SizeAsInt()); in Shrink() local 1283 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in Shrink() 1537 bool SemiSpace::GrowTo(int new_capacity) { in GrowTo() argument 1541 DCHECK((new_capacity & Page::kPageAlignmentMask) == 0); in GrowTo() 1542 DCHECK(new_capacity <= maximum_total_capacity_); in GrowTo() 1543 DCHECK(new_capacity > total_capacity_); in GrowTo() 1545 int pages_after = new_capacity / Page::kPageSize; in GrowTo() [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/xray/ |
D | hashtable.c | 138 int new_capacity = old_capacity * 2; in XRayHashTableGrow() local 141 XRayHashTableInit(table, new_capacity); in XRayHashTableGrow()
|
/external/chromium_org/components/cronet/android/ |
D | url_request_adapter.cc | 208 int new_capacity = read_buffer_->capacity() + kBufferSizeIncrement; in Read() local 209 read_buffer_->SetCapacity(new_capacity); in Read()
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/ |
D | unicodetext.cc | 108 void UnicodeText::Repr::reserve(int new_capacity) { in reserve() argument 110 if (capacity_ >= new_capacity && ours_) return; in reserve() 113 capacity_ = max(new_capacity, (3 * capacity_) / 2 + 20); in reserve()
|
/external/chromium_org/third_party/libvpx/source/libvpx/third_party/libwebm/ |
D | mkvmuxer.cpp | 267 const int32 new_capacity = in AddCue() local 270 if (new_capacity < 1) in AddCue() 274 new (std::nothrow) CuePoint* [new_capacity]; // NOLINT in AddCue() 285 cue_entries_capacity_ = new_capacity; in AddCue() 2740 const int32 new_capacity = in MakeNewCluster() local 2743 new (std::nothrow) Cluster* [new_capacity]; // NOLINT in MakeNewCluster() 2754 cluster_list_capacity_ = new_capacity; in MakeNewCluster() 2930 const int32 new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2; in QueueFrame() local 2932 if (new_capacity < 1) in QueueFrame() 2935 Frame** const frames = new (std::nothrow) Frame* [new_capacity]; // NOLINT in QueueFrame() [all …]
|
/external/libvpx/libvpx/third_party/libwebm/ |
D | mkvmuxer.cpp | 274 const int32 new_capacity = in AddCue() local 277 if (new_capacity < 1) in AddCue() 281 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT in AddCue() 292 cue_entries_capacity_ = new_capacity; in AddCue() 2900 const int32 new_capacity = in MakeNewCluster() local 2903 new (std::nothrow) Cluster*[new_capacity]; // NOLINT in MakeNewCluster() 2914 cluster_list_capacity_ = new_capacity; in MakeNewCluster() 3091 const int32 new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2; in QueueFrame() local 3093 if (new_capacity < 1) in QueueFrame() 3096 Frame** const frames = new (std::nothrow) Frame*[new_capacity]; // NOLINT in QueueFrame() [all …]
|