Home
last modified time | relevance | path

Searched refs:new_size (Results 1 - 25 of 244) sorted by relevance

12345678910

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dresize_uninitialized.h37 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) { in Resize()
47 s->__resize_default_init(new_size); in Resize()
61 // Like str->resize(new_size), except any new characters added to "*str" as a
66 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) { in STLStringResizeUninitialized() argument
67 ResizeUninitializedTraits<string_type>::Resize(s, new_size); in STLStringResizeUninitialized()
74 void STLStringReserveAmortized(string_type* s, size_t new_size) { in STLStringReserveAmortized() argument
76 if (new_size > cap) { in STLStringReserveAmortized()
78 s->reserve((std::max)(new_size, in STLStringReserveAmortized()
87 STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) STLStringResizeUninitializedAmortized() argument
[all...]
/third_party/node/deps/v8/src/heap/cppgc/
H A Dexplicit-management.cc80 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_siz in Resize()
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_varsize_struct.py17 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/syscalls/mremap/
H A Dmremap05.c35 * at the address range specified by new_address and new_size.
52 size_t new_size; /* in pages */ member
75 .new_size = 1,
84 .new_size = 1,
93 .new_size = 1,
102 .new_size = 1,
109 .new_size = 1,
138 t->ret = mremap(t->old_address, t->old_size, t->new_size, t->flags, in test_mremap()
163 t->new_address = get_test_area(t->new_size * pagesize, 1); in setup0()
169 t->new_address = get_test_area((t->new_size in setup1()
[all...]
/third_party/protobuf/src/google/protobuf/
H A Drepeated_field.cc51 int new_size = current_size_ + extend_amount; in InternalExtend() local
52 if (total_size_ >= new_size) { in InternalExtend()
54 // total_size must be non-zero since it is lower-bounded by 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()
[all...]
/third_party/skia/third_party/externals/freetype/src/lzw/
H A Dftzopen.c126 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 in ft_lzwstate_prefix_grow() local
[all...]
/third_party/libfuse/example/
H A Dcuse.c63 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...]
H A Dioctl.c48 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()
[all...]
H A Dcuse_client.c61 size_t *prev_size, size_t *new_size) in do_rw()
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()
60 do_rw(int fd, int is_read, size_t size, off_t offset, size_t *prev_size, size_t *new_size) do_rw() argument
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_bitmask.c94 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()
[all...]
H A Du_handle_table.c103 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/mesa3d/src/egl/main/
H A Deglarray.c43 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/skia/third_party/externals/libwebp/tests/fuzzer/
H A Dadvanced_api_fuzzer.c95 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/base/
H A Dregion-allocator.cc87 size_t new_size) { in Split()
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()
86 Split(Region* region, size_t new_size) Split() argument
262 TrimRegion(Address address, size_t new_size) TrimRegion() argument
[all...]
/third_party/node/deps/v8/src/zone/
H A Dzone.cc145 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/
H A Dinlined_vector.h399 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); variable
565 // already correct for either case, *adding* `new_size` gives us the correct
567 AddSize(new_size); variable
572 auto Storage<T, N, A>::Assign(ValueAdapter values, size_type new_size)
609 SetSize(new_size); global() variable
652 SetSize(new_size); global() variable
664 size_type new_size = storage_view.size + insert_count; global() variable
693 SetAllocatedSize(new_size); global() variable
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dradeon_video.c90 struct rvid_buffer *new_buf, unsigned new_size) in si_vid_resize_buffer()
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()
89 si_vid_resize_buffer(struct pipe_screen *screen, struct radeon_cmdbuf *cs, struct rvid_buffer *new_buf, unsigned new_size) si_vid_resize_buffer() argument
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/
H A Dstats.cc54 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/backends/backend/genesys/
H A Dserialize.h85 size_t new_size; in serialize() local
86 serialize(str, new_size); in serialize()
88 if (new_size > max_size) { in serialize()
91 x.reserve(new_size); in serialize()
92 for (size_t i = 0; i < new_size; ++i) { in serialize()
114 size_t new_size; in serialize() local
115 serialize(str, new_size); in serialize()
117 if (new_size > Size) { in serialize()
/third_party/node/deps/v8/src/trap-handler/
H A Dhandler-outside.cc161 size_t new_size = gNumCodeObjects > 0
167 if (new_size > int_max) {
168 new_size = int_max;
170 if (new_size == gNumCodeObjects) {
178 realloc(gCodeObjects, sizeof(*gCodeObjects) * new_size));
185 sizeof(*gCodeObjects) * (new_size - gNumCodeObjects));
186 for (size_t j = gNumCodeObjects; j < new_size; ++j) {
189 gNumCodeObjects = new_size;
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_validate.c96 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/protobuf/php/ext/google/protobuf/
H A Dnames.c45 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/skia/third_party/externals/freetype/src/base/
H A Dftdbgmem.c257 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()
711 if ( new_size == cur_size ) in ft_mem_debug_realloc()
723 if ( new_size < in ft_mem_debug_realloc()
696 ft_mem_debug_realloc( FT_Memory memory, FT_Long cur_size, FT_Long new_size, FT_Pointer block ) ft_mem_debug_realloc() argument
[all...]
/third_party/elfutils/libelf/
H A Delf_compress_gnu.c103 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()
/third_party/ffmpeg/libavcodec/
H A Datsc_a53.c72 size_t new_size, old_size = buf ? buf->size : 0; in ff_parse_a53_cc() local
100 new_size = (old_size + cc_count * 3); in ff_parse_a53_cc()
102 if (new_size > INT_MAX) in ff_parse_a53_cc()
106 ret = av_buffer_realloc(pbuf, new_size); in ff_parse_a53_cc()

Completed in 11 milliseconds

12345678910