/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | resize_uninitialized.h | 37 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize() 46 static void Resize(string_type* s, size_t new_size) { 47 s->__resize_default_init(new_size); 66 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) { 67 ResizeUninitializedTraits<string_type>::Resize(s, new_size); 74 void STLStringReserveAmortized(string_type* s, size_t new_size) { 76 if (new_size > cap) { 78 s->reserve((std::max)(new_size, 2 * cap)); 87 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) { 88 STLStringReserveAmortized(s, new_size); [all …]
|
/third_party/node/deps/v8/src/heap/cppgc/ |
D | explicit-management.cc | 80 bool Grow(HeapObjectHeader& header, BasePage& base_page, size_t new_size, in Grow() argument 82 DCHECK_GE(new_size, header.AllocatedSize() + kAllocationGranularity); in Grow() 93 header.SetAllocatedSize(new_size); in Grow() 99 bool Shrink(HeapObjectHeader& header, BasePage& base_page, size_t new_size, in Shrink() argument 101 DCHECK_GE(header.AllocatedSize(), new_size + kAllocationGranularity); in Shrink() 114 header.SetAllocatedSize(new_size); in Shrink() 122 header.SetAllocatedSize(new_size); in Shrink() 150 const size_t new_size = RoundUp<kAllocationGranularity>( in Resize() local 155 if (new_size > old_size) { in Resize() 156 return Grow(header, *base_page, new_size, new_size - old_size); in Resize() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap05.c | 54 size_t new_size; /* in pages */ member 77 .new_size = 1, 86 .new_size = 1, 95 .new_size = 1, 104 .new_size = 1, 111 .new_size = 1, 140 t->ret = mremap(t->old_address, t->old_size, t->new_size, t->flags, in test_mremap() 165 t->new_address = get_test_area(t->new_size * pagesize, 1); in setup0() 171 t->new_address = get_test_area((t->new_size + 1) * pagesize, 1) + 1; in setup1() 183 t->new_address = get_test_area(t->new_size * pagesize, 1); in setup3() [all …]
|
/third_party/python/Lib/ctypes/test/ |
D | test_varsize_struct.py | 17 new_size = sizeof(X) + sizeof(c_int) * 1 18 resize(x, new_size) 19 self.assertEqual(sizeof(x), new_size) 23 new_size = sizeof(X) + sizeof(c_int) * 9 24 resize(x, new_size) 25 self.assertEqual(sizeof(x), new_size) 29 new_size = sizeof(X) + sizeof(c_int) * 1 30 resize(x, new_size) 31 self.assertEqual(sizeof(x), new_size)
|
/third_party/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/ |
D | ftrace_buffer_size_kb.sh | 30 new_size=1 33 echo $new_size > "$TRACING_PATH"/buffer_size_kb 34 new_size=$(( $new_size + $step )) 40 new_size=$(( $new_size - $step )) 41 echo $new_size > "$TRACING_PATH"/buffer_size_kb
|
/third_party/protobuf/src/google/protobuf/ |
D | repeated_field.cc | 51 int new_size = current_size_ + extend_amount; in InternalExtend() local 52 if (total_size_ >= new_size) { in InternalExtend() 59 new_size = std::max(internal::kRepeatedFieldLowerClampLimit, in InternalExtend() 60 std::max(total_size_ * 2, new_size)); in InternalExtend() 61 GOOGLE_CHECK_LE(new_size, (std::numeric_limits<size_t>::max() - kRepHeaderSize) / in InternalExtend() 64 size_t bytes = kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size; in InternalExtend() 73 total_size_ = new_size; in InternalExtend() 93 void RepeatedPtrFieldBase::Reserve(int new_size) { in Reserve() argument 94 if (new_size > current_size_) { in Reserve() 95 InternalExtend(new_size - current_size_); in Reserve()
|
/third_party/skia/third_party/externals/freetype/src/lzw/ |
D | ftzopen.c | 126 FT_Offset new_size = old_size; in ft_lzwstate_stack_grow() local 128 new_size = new_size + ( new_size >> 1 ) + 4; in ft_lzwstate_stack_grow() 139 if ( new_size > ( 1 << LZW_MAX_BITS ) ) in ft_lzwstate_stack_grow() 141 new_size = 1 << LZW_MAX_BITS; in ft_lzwstate_stack_grow() 142 if ( new_size == old_size ) in ft_lzwstate_stack_grow() 146 if ( FT_QRENEW_ARRAY( state->stack, old_size, new_size ) ) in ft_lzwstate_stack_grow() 153 state->stack_size = new_size; in ft_lzwstate_stack_grow() 164 FT_UInt new_size = old_size; in ft_lzwstate_prefix_grow() local 169 if ( new_size == 0 ) /* first allocation -> 9 bits */ in ft_lzwstate_prefix_grow() 170 new_size = 512; in ft_lzwstate_prefix_grow() [all …]
|
/third_party/libfuse/example/ |
D | ioctl.c | 48 static int fioc_resize(size_t new_size) in fioc_resize() argument 52 if (new_size == fioc_size) in fioc_resize() 55 new_buf = realloc(fioc_buf, new_size); in fioc_resize() 56 if (!new_buf && new_size) in fioc_resize() 59 if (new_size > fioc_size) in fioc_resize() 60 memset(new_buf + fioc_size, 0, new_size - fioc_size); in fioc_resize() 63 fioc_size = new_size; in fioc_resize() 68 static int fioc_expand(size_t new_size) in fioc_expand() argument 70 if (new_size > fioc_size) in fioc_expand() 71 return fioc_resize(new_size); in fioc_expand()
|
D | cuse.c | 63 static int cusexmp_resize(size_t new_size) in cusexmp_resize() argument 67 if (new_size == cusexmp_size) in cusexmp_resize() 70 new_buf = realloc(cusexmp_buf, new_size); in cusexmp_resize() 71 if (!new_buf && new_size) in cusexmp_resize() 74 if (new_size > cusexmp_size) in cusexmp_resize() 75 memset(new_buf + cusexmp_size, 0, new_size - cusexmp_size); in cusexmp_resize() 78 cusexmp_size = new_size; in cusexmp_resize() 83 static int cusexmp_expand(size_t new_size) in cusexmp_expand() argument 85 if (new_size > cusexmp_size) in cusexmp_expand() 86 return cusexmp_resize(new_size); in cusexmp_expand() [all …]
|
D | cuse_client.c | 61 size_t *prev_size, size_t *new_size) in do_rw() argument 85 *new_size = arg.new_size; in do_rw() 96 size_t size, prev_size = 0, new_size = 0; in main() local 141 &prev_size, &new_size); in main() 145 rc, prev_size, new_size); in main()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_bitmask.c | 94 unsigned new_size; in util_bitmask_resize() local 105 new_size = bm->size; in util_bitmask_resize() 106 while (new_size < minimum_size) { in util_bitmask_resize() 107 new_size *= 2; in util_bitmask_resize() 109 if (new_size < bm->size) in util_bitmask_resize() 112 assert(new_size); in util_bitmask_resize() 113 assert(new_size % UTIL_BITMASK_BITS_PER_WORD == 0); in util_bitmask_resize() 118 new_size / UTIL_BITMASK_BITS_PER_BYTE); in util_bitmask_resize() 124 (new_size - bm->size)/UTIL_BITMASK_BITS_PER_BYTE); in util_bitmask_resize() 126 bm->size = new_size; in util_bitmask_resize()
|
D | u_handle_table.c | 103 unsigned new_size; in handle_table_resize() local 109 new_size = ht->size; in handle_table_resize() 110 while(!(new_size > minimum_size)) in handle_table_resize() 111 new_size *= 2; in handle_table_resize() 112 assert(new_size); in handle_table_resize() 116 new_size*sizeof(void *)); in handle_table_resize() 120 memset(new_objects + ht->size, 0, (new_size - ht->size)*sizeof(void *)); in handle_table_resize() 122 ht->size = new_size; in handle_table_resize()
|
/third_party/node/deps/v8/src/base/ |
D | region-allocator.cc | 87 size_t new_size) { in Split() argument 88 DCHECK(IsAligned(new_size, page_size_)); in Split() 89 DCHECK_NE(new_size, 0); in Split() 90 DCHECK_GT(region->size(), new_size); in Split() 92 if (on_split_) on_split_(region->begin(), new_size); in Split() 98 new Region(region->begin() + new_size, region->size() - new_size, state); in Split() 103 region->set_size(new_size); in Split() 193 size_t new_size = requested_address - region->begin(); in AllocateRegionAt() local 194 DCHECK(IsAligned(new_size, page_size_)); in AllocateRegionAt() 195 region = Split(region, new_size); in AllocateRegionAt() [all …]
|
D | virtual-address-space-page-allocator.cc | 36 size_t new_size) { in ReleasePages() argument 44 DCHECK_LE(new_size, size); in ReleasePages() 50 CHECK(vas_->DecommitPages(address + new_size, size - new_size)); in ReleasePages()
|
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/ |
D | advanced_api_fuzzer.c | 95 size_t new_size = value + 1; in LLVMFuzzerTestOneInput() local 97 if (new_data + new_size > data + size) { in LLVMFuzzerTestOneInput() 98 new_size = data + size - new_data; in LLVMFuzzerTestOneInput() 100 status = WebPIAppend(idec, new_data, new_size); in LLVMFuzzerTestOneInput() 101 if (status != VP8_STATUS_SUSPENDED || new_size == 0) break; in LLVMFuzzerTestOneInput() 102 new_data += new_size; in LLVMFuzzerTestOneInput() 103 new_size *= 2; in LLVMFuzzerTestOneInput()
|
/third_party/node/deps/v8/src/zone/ |
D | zone.cc | 145 size_t new_size = kSegmentOverhead + new_size_no_overhead; in NewExpand() local 148 if (new_size_no_overhead < size || new_size < kSegmentOverhead) { in NewExpand() 151 if (new_size < kMinimumSegmentSize) { in NewExpand() 152 new_size = kMinimumSegmentSize; in NewExpand() 153 } else if (new_size >= kMaximumSegmentSize) { in NewExpand() 158 new_size = std::max({min_new_size, kMaximumSegmentSize}); in NewExpand() 160 if (new_size > INT_MAX) { in NewExpand() 164 allocator_->AllocateSegment(new_size, supports_compression()); in NewExpand() 169 DCHECK_GE(segment->total_size(), new_size); in NewExpand()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | inlined_vector.h | 399 void Initialize(ValueAdapter values, size_type new_size); 402 void Assign(ValueAdapter values, size_type new_size); 405 void Resize(ValueAdapter values, size_type new_size); 542 auto Storage<T, N, A>::Initialize(ValueAdapter values, size_type new_size) 549 if (new_size > GetInlinedCapacity()) { 553 size_type new_capacity = ComputeCapacity(GetInlinedCapacity(), new_size); 562 &values, new_size); 567 AddSize(new_size); 572 auto Storage<T, N, A>::Assign(ValueAdapter values, size_type new_size) -> void { 581 if (new_size > storage_view.capacity) { [all …]
|
/third_party/mesa3d/src/egl/main/ |
D | eglarray.c | 43 EGLint new_size; in _eglGrowArray() local 46 new_size = array->MaxSize; in _eglGrowArray() 47 while (new_size <= array->Size) in _eglGrowArray() 48 new_size *= 2; in _eglGrowArray() 50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0])); in _eglGrowArray() 53 array->Name, new_size); in _eglGrowArray() 58 array->MaxSize = new_size; in _eglGrowArray()
|
/third_party/node/deps/v8/src/trap-handler/ |
D | handler-outside.cc | 161 size_t new_size = gNumCodeObjects > 0 in RegisterHandlerData() local 167 if (new_size > int_max) { in RegisterHandlerData() 168 new_size = int_max; in RegisterHandlerData() 170 if (new_size == gNumCodeObjects) { in RegisterHandlerData() 178 realloc(gCodeObjects, sizeof(*gCodeObjects) * new_size)); in RegisterHandlerData() 185 sizeof(*gCodeObjects) * (new_size - gNumCodeObjects)); in RegisterHandlerData() 186 for (size_t j = gNumCodeObjects; j < new_size; ++j) { in RegisterHandlerData() 189 gNumCodeObjects = new_size; in RegisterHandlerData()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | radeon_video.c | 90 struct rvid_buffer *new_buf, unsigned new_size) in si_vid_resize_buffer() argument 94 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in si_vid_resize_buffer() 98 if (!si_vid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in si_vid_resize_buffer() 110 if (new_size > bytes) { in si_vid_resize_buffer() 111 new_size -= bytes; in si_vid_resize_buffer() 113 memset(dst, 0, new_size); in si_vid_resize_buffer()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/ |
D | stats.cc | 54 int32_t new_size = 0; in PrintComparison() local 57 new_size = new_table->DataLength(); in PrintComparison() 61 if (new_size == size) { in PrintComparison() 64 fprintf(out, "-> %d (%lf%%) | %lf%% of original\n", new_size, in PrintComparison() 65 size_percent, static_cast<double>(new_size) / size * 100); in PrintComparison()
|
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/ |
D | pb_validate.c | 96 unsigned new_size; in pb_validate_add_buffer() local 99 new_size = vl->size * 2; in pb_validate_add_buffer() 100 if(!new_size) in pb_validate_add_buffer() 105 new_size*sizeof(struct pb_validate_entry)); in pb_validate_add_buffer() 109 memset(new_entries + vl->size, 0, (new_size - vl->size)*sizeof(struct pb_validate_entry)); in pb_validate_add_buffer() 111 vl->size = new_size; in pb_validate_add_buffer()
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | ftdbgmem.c | 257 FT_Long new_size; in ft_mem_table_resize() local 260 new_size = ft_mem_closest_prime( table->nodes ); in ft_mem_table_resize() 261 if ( new_size != table->size ) in ft_mem_table_resize() 270 new_size * (FT_Long)sizeof ( FT_MemNode ) ); in ft_mem_table_resize() 274 FT_ARRAY_ZERO( new_buckets, new_size ); in ft_mem_table_resize() 286 hash = FT_MEM_VAL( node->address ) % (FT_PtrDist)new_size; in ft_mem_table_resize() 300 table->size = new_size; in ft_mem_table_resize() 698 FT_Long new_size, in ft_mem_debug_realloc() argument 711 if ( new_size == cur_size ) in ft_mem_debug_realloc() 723 if ( new_size <= 0 ) in ft_mem_debug_realloc() [all …]
|
/third_party/protobuf/php/ext/google/protobuf/ |
D | names.c | 45 size_t new_size = sink->size; in stringsink_string() local 47 while (sink->len + len > new_size) { in stringsink_string() 48 new_size *= 2; in stringsink_string() 51 if (new_size != sink->size) { in stringsink_string() 52 sink->ptr = realloc(sink->ptr, new_size); in stringsink_string() 53 sink->size = new_size; in stringsink_string()
|
/third_party/elfutils/libelf/ |
D | elf_compress_gnu.c | 103 size_t orig_size, new_size, orig_addralign; in elf_compress_gnu() local 106 &new_size, force); in elf_compress_gnu() 126 shdr->sh_size = new_size; in elf_compress_gnu() 131 shdr->sh_size = new_size; in elf_compress_gnu() 134 __libelf_reset_rawdata (scn, out_buf, new_size, 1, ELF_T_BYTE); in elf_compress_gnu()
|