Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 128) sorted by relevance

123456

/external/tensorflow/tensorflow/core/lib/strings/
Dstrcat_test.cc218 string::size_type old_size = result.size(); in TEST() local
220 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
222 old_size = result.size(); in TEST()
224 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
226 old_size = result.size(); in TEST()
228 EXPECT_EQ(result.substr(old_size), "Hello, World"); in TEST()
230 old_size = result.size(); in TEST()
233 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World!"); in TEST()
235 old_size = result.size(); in TEST()
238 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World"); in TEST()
[all …]
Dstrcat.cc145 size_t old_size = result->size(); in AppendPieces() local
146 size_t total_size = old_size; in AppendPieces()
154 char *out = begin + old_size; in AppendPieces()
173 string::size_type old_size = result->size(); in StrAppend() local
174 gtl::STLStringResizeUninitialized(result, old_size + a.size() + b.size()); in StrAppend()
176 char *out = Append2(begin + old_size, a, b); in StrAppend()
185 string::size_type old_size = result->size(); in StrAppend() local
187 old_size + a.size() + b.size() + c.size()); in StrAppend()
189 char *out = Append2(begin + old_size, a, b); in StrAppend()
200 string::size_type old_size = result->size(); in StrAppend() local
[all …]
/external/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c53 size_t old_size; /* in pages */ member
76 .old_size = 1,
85 .old_size = 1,
94 .old_size = 2,
103 .old_size = 1,
110 .old_size = 1,
140 t->ret = mremap(t->old_address, t->old_size, t->new_size, t->flags, in test_mremap()
164 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup0()
170 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup1()
176 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup2()
[all …]
/external/grpc-grpc/tools/profiling/ios_bin/
Dbinary_size.py95 old_size = None variable
106 old_size = get_size('old', frameworks) variable
116 if old_size == None:
124 if abs(new_size[i] - old_size[i]) < diff_threshold:
126 if new_size[i] > old_size[i]:
133 old_size[i]))
135 if new_size[i] > old_size[i]:
137 elif new_size[i] < old_size[i]:
143 '{:,}'.format(old_size[i]))
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmove_to_front.cpp32 const uint32_t old_size = GetSize(); in Insert() local
33 (void)old_size; in Insert()
41 assert(old_size + 1 == GetSize()); in Insert()
68 const uint32_t old_size = GetSize(); in RankFromValue() local
69 if (old_size == 1) { in RankFromValue()
101 assert(old_size == GetSize() + 1); in RankFromValue()
104 assert(old_size == GetSize()); in RankFromValue()
126 const uint32_t old_size = GetSize(); in Promote() local
127 if (old_size == 1) return ValueOf(root_) == value; in Promote()
143 assert(old_size == GetSize() + 1); in Promote()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmove_to_front.cpp32 const uint32_t old_size = GetSize(); in Insert() local
33 (void)old_size; in Insert()
41 assert(old_size + 1 == GetSize()); in Insert()
68 const uint32_t old_size = GetSize(); in RankFromValue() local
69 if (old_size == 1) { in RankFromValue()
101 assert(old_size == GetSize() + 1); in RankFromValue()
104 assert(old_size == GetSize()); in RankFromValue()
126 const uint32_t old_size = GetSize(); in Promote() local
127 if (old_size == 1) return ValueOf(root_) == value; in Promote()
143 assert(old_size == GetSize() + 1); in Promote()
[all …]
/external/perfetto/include/perfetto/base/
Dcontainer_annotations.h32 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) \ argument
35 (buffer) + (old_size), \
38 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) \ argument
41 (buffer) + (old_size), \
51 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) argument
52 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) argument
/external/freetype/src/lzw/
Dftzopen.c125 FT_Offset old_size = state->stack_size; in ft_lzwstate_stack_grow() local
126 FT_Offset new_size = old_size; in ft_lzwstate_stack_grow()
133 old_size = 0; in ft_lzwstate_stack_grow()
141 if ( new_size == old_size ) in ft_lzwstate_stack_grow()
145 if ( FT_RENEW_ARRAY( state->stack, old_size, new_size ) ) in ft_lzwstate_stack_grow()
158 FT_UInt old_size = state->prefix_size; in ft_lzwstate_prefix_grow() local
159 FT_UInt new_size = old_size; in ft_lzwstate_prefix_grow()
177 if ( FT_REALLOC_MULT( state->prefix, old_size, new_size, in ft_lzwstate_prefix_grow()
185 state->prefix + old_size, in ft_lzwstate_prefix_grow()
186 old_size * sizeof ( FT_Byte ) ); in ft_lzwstate_prefix_grow()
/external/eigen/Eigen/src/Core/util/
DMemory.h188 inline void* aligned_realloc(void *ptr, std::size_t new_size, std::size_t old_size) in aligned_realloc() argument
190 EIGEN_UNUSED_VARIABLE(old_size); in aligned_realloc()
196 result = handmade_aligned_realloc(ptr,new_size,old_size); in aligned_realloc()
238 …gn> inline void* conditional_aligned_realloc(void* ptr, std::size_t new_size, std::size_t old_size) in conditional_aligned_realloc() argument
240 return aligned_realloc(ptr, new_size, old_size); in conditional_aligned_realloc()
346 …_FUNC inline T* conditional_aligned_realloc_new(T* pts, std::size_t new_size, std::size_t old_size) in conditional_aligned_realloc_new() argument
349 check_size_for_overflow<T>(old_size); in conditional_aligned_realloc_new()
350 if(new_size < old_size) in conditional_aligned_realloc_new()
351 destruct_elements_of_array(pts+new_size, old_size-new_size); in conditional_aligned_realloc_new()
352 …onal_aligned_realloc<Align>(reinterpret_cast<void*>(pts), sizeof(T)*new_size, sizeof(T)*old_size)); in conditional_aligned_realloc_new()
[all …]
/external/jemalloc_new/test/integration/
Dextent.c104 size_t old_size, new_size, sz; in test_manual_hook_auto_arena() local
124 old_size = sizeof(extent_hooks_t *); in test_manual_hook_auto_arena()
128 &old_size, (void *)&new_hooks, new_size), 0, in test_manual_hook_auto_arena()
141 size_t old_size, new_size, sz; in test_manual_hook_body() local
157 old_size = sizeof(extent_hooks_t *); in test_manual_hook_body()
161 &old_size, (void *)&new_hooks, new_size), 0, in test_manual_hook_body()
188 &old_size, NULL, 0), 0, "Unexpected extent_hooks error"); in test_manual_hook_body()
/external/autotest/client/bin/result_tools/
Dutils.py298 old_size = summary.trimmed_size
313 if new_size == old_size:
314 utils_lib.LOG('Result size was not changed: %s.' % old_size)
317 (utils_lib.get_size_string(old_size),
385 old_size = summary.trimmed_size
386 throttle_probability = float(max_size_KB * 1024) / old_size
390 (path, old_size, throttle_probability))
393 if summary.trimmed_size < old_size:
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc186 uptr old_size = meta->requested_size; in MsanReallocate() local
191 if (new_size > old_size) { in MsanReallocate()
193 __msan_clear_and_unpoison((char *)old_p + old_size, in MsanReallocate()
194 new_size - old_size); in MsanReallocate()
197 PoisonMemory((char *)old_p + old_size, new_size - old_size, stack); in MsanReallocate()
202 uptr memcpy_size = Min(new_size, old_size); in MsanReallocate()
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc161 int old_size = target_->size(); in Next() local
164 if (old_size < target_->capacity()) { in Next()
170 if (old_size > std::numeric_limits<int>::max() / 2) { in Next()
181 std::max(old_size * 2, in Next()
185 *data = mutable_string_data(target_) + old_size; in Next()
186 *size = target_->size() - old_size; in Next()
/external/u-boot/fs/ubifs/
Dreplay.c59 loff_t old_size; member
193 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
194 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range()
351 int deletion, int *used, loff_t old_size, in insert_node() argument
373 r->old_size = old_size; in insert_node()
635 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
640 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
642 old_size <= new_size) { in replay_bud()
654 old_size, new_size); in replay_bud()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_vector.h85 uptr old_size = Size(); in Resize() local
87 if (old_size < size) { in Resize()
88 for (uptr i = old_size; i < size; i++) in Resize()
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/
Dsize_size.pass.cpp26 const typename S::size_type old_size = s.size(); in test() local
28 if (pos <= old_size) in test()
45 assert(pos > old_size); in test()
56 const typename S::size_type old_size = s.size(); in test() local
58 if (pos <= old_size) in test()
75 assert(pos > old_size); in test()
/external/bsdiff/
Ddiff_encoder.h26 uint64_t old_size, in DiffEncoder() argument
31 old_size_(old_size), in DiffEncoder()
/external/e2fsprogs/e2fsck/
Ddx_dirinfo.c21 unsigned long old_size; in e2fsck_add_dx_dir() local
36 old_size = ctx->dx_dir_info_size * sizeof(struct dx_dir_info); in e2fsck_add_dx_dir()
38 retval = ext2fs_resize_mem(old_size, ctx->dx_dir_info_size * in e2fsck_add_dx_dir()
/external/v8/src/wasm/
Dwasm-objects.cc91 uint32_t old_size = instance->indirect_function_table_size(); in resize_indirect_function_table() local
105 old, static_cast<int>(new_size - old_size)); in resize_indirect_function_table()
121 for (uint32_t j = old_size; j < new_size; j++) { in resize_indirect_function_table()
794 uint32_t old_size = functions()->length(); in Grow() local
806 DCHECK_EQ(old_size, instance->indirect_function_table_size()); in Grow()
807 uint32_t new_size = old_size + count; in Grow()
884 size_t old_size = old_buffer->byte_length()->Number(); in GrowMemoryBuffer() local
885 CHECK_GE(wasm::kV8MaxWasmMemoryBytes, old_size); in GrowMemoryBuffer()
886 CHECK_EQ(0, old_size % wasm::kWasmPageSize); in GrowMemoryBuffer()
887 size_t old_pages = old_size / wasm::kWasmPageSize; in GrowMemoryBuffer()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceAssembler.cpp114 intptr_t old_size = size(); in extendCapacity() local
126 reinterpret_cast<void *>(Contents), old_size); in extendCapacity()
138 assert(size() == old_size); in extendCapacity()
/external/boringssl/src/crypto/
Dmem.c134 size_t old_size = *(size_t *)ptr; in OPENSSL_realloc() local
143 if (old_size < to_copy) { in OPENSSL_realloc()
144 to_copy = old_size; in OPENSSL_realloc()
/external/libcxx/src/
Dstrstream.cpp162 size_t old_size = static_cast<size_t> ((epptr() ? epptr() : egptr()) - eback()); in overflow() local
163 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow()
173 if (old_size != 0) { in overflow()
175 memcpy(buf, eback(), static_cast<size_t>(old_size)); in overflow()
/external/e2fsprogs/lib/ext2fs/
Dbb_inode.c164 unsigned long old_size; in clear_bad_block_proc() local
180 old_size = rec->max_ind_blocks * sizeof(blk_t); in clear_bad_block_proc()
182 retval = ext2fs_resize_mem(old_size, in clear_bad_block_proc()
/external/flatbuffers/include/flatbuffers/
Dgrpc.h124 virtual uint8_t *reallocate_downward(uint8_t *old_p, size_t old_size, in reallocate_downward() argument
128 FLATBUFFERS_ASSERT(old_size == GRPC_SLICE_LENGTH(slice_)); in reallocate_downward()
129 FLATBUFFERS_ASSERT(new_size > old_size); in reallocate_downward()
133 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back, in reallocate_downward()
/external/swiftshader/third_party/subzero/runtime/
Dszrt_asan.c237 size_t old_size = rz_right - ptr; in __asan_realloc() local
238 if (size == old_size) in __asan_realloc()
243 size_t copyable = (size < old_size) ? size : old_size; in __asan_realloc()

123456