/external/jemalloc/test/integration/ |
D | chunk.c | 37 size_t old_size, new_size, huge0, huge1, huge2, sz; in TEST_BEGIN() local 42 old_size = sizeof(chunk_alloc_t *); in TEST_BEGIN() 45 assert_d_eq(mallctl("arena.0.chunk.alloc", &old_alloc, &old_size, in TEST_BEGIN() 49 assert_d_eq(mallctl("arena.0.chunk.dalloc", &old_dalloc, &old_size, in TEST_BEGIN() 53 assert_d_eq(mallctl("arena.0.chunk.purge", &old_purge, &old_size, in TEST_BEGIN() 84 old_size), 0, "Unexpected alloc error"); in TEST_BEGIN() 86 old_size), 0, "Unexpected dalloc error"); in TEST_BEGIN() 88 old_size), 0, "Unexpected purge error"); in TEST_BEGIN()
|
/external/eigen/Eigen/src/Core/util/ |
D | Memory.h | 152 inline void* generic_aligned_realloc(void* ptr, size_t size, size_t old_size) in generic_aligned_realloc() argument 174 std::memcpy(newptr, ptr, (std::min)(size,old_size)); in generic_aligned_realloc() 260 inline void* aligned_realloc(void *ptr, size_t new_size, size_t old_size) in aligned_realloc() argument 262 EIGEN_UNUSED_VARIABLE(old_size); in aligned_realloc() 270 result = generic_aligned_realloc(ptr,new_size,old_size); in aligned_realloc() 278 result = generic_aligned_realloc(ptr,new_size,old_size); in aligned_realloc() 283 result = handmade_aligned_realloc(ptr,new_size,old_size); in aligned_realloc() 325 …e<bool Align> inline void* conditional_aligned_realloc(void* ptr, size_t new_size, size_t old_size) in conditional_aligned_realloc() argument 327 return aligned_realloc(ptr, new_size, old_size); in conditional_aligned_realloc() 405 … T, bool Align> inline T* conditional_aligned_realloc_new(T* pts, size_t new_size, size_t old_size) in conditional_aligned_realloc_new() argument [all …]
|
/external/eigen/Eigen/src/Eigen2Support/ |
D | Memory.h | 17 …ealloc(void *ptr, size_t new_size, size_t old_size) { return internal::aligned_realloc(ptr, new_si… in ei_aligned_realloc() argument 29 …ool Align> inline void* ei_conditional_aligned_realloc(void* ptr, size_t new_size, size_t old_size) in ei_conditional_aligned_realloc() argument 31 return internal::conditional_aligned_realloc<Align>(ptr, new_size, old_size); in ei_conditional_aligned_realloc()
|
/external/compiler-rt/lib/msan/ |
D | msan_allocator.cc | 169 uptr old_size = meta->requested_size; in MsanReallocate() local 174 if (new_size > old_size) { in MsanReallocate() 176 __msan_clear_and_unpoison((char *)old_p + old_size, in MsanReallocate() 177 new_size - old_size); in MsanReallocate() 180 PoisonMemory((char *)old_p + old_size, new_size - old_size, stack); in MsanReallocate() 185 uptr memcpy_size = Min(new_size, old_size); in MsanReallocate()
|
/external/protobuf/src/google/protobuf/io/ |
D | zero_copy_stream_impl_lite.cc | 158 int old_size = target_->size(); in Next() local 161 if (old_size < target_->capacity()) { in Next() 167 if (old_size > std::numeric_limits<int>::max() / 2) { in Next() 178 max(old_size * 2, in Next() 182 *data = mutable_string_data(target_) + old_size; in Next() 183 *size = target_->size() - old_size; in Next()
|
/external/boringssl/src/crypto/ |
D | mem.c | 76 void *OPENSSL_realloc_clean(void *ptr, size_t old_size, size_t new_size) { in OPENSSL_realloc_clean() argument 89 if (new_size < old_size) { in OPENSSL_realloc_clean() 98 memcpy(ret, ptr, old_size); in OPENSSL_realloc_clean() 99 OPENSSL_cleanse(ptr, old_size); in OPENSSL_realloc_clean()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_vector.h | 85 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/valgrind/drd/ |
D | drd_malloc_wrappers.c | 182 SizeT old_size; in drd_realloc() local 204 old_size = mc->size; in drd_realloc() 206 if (old_size == new_size) in drd_realloc() 212 else if (new_size < old_size) in drd_realloc() 215 s_stop_using_mem_callback(mc->data + new_size, old_size - new_size); in drd_realloc()
|
/external/e2fsprogs/e2fsck/ |
D | dx_dirinfo.c | 21 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/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/ |
D | size_size.pass.cpp | 25 typename S::size_type old_size = s.size(); in test() local 31 assert(pos <= old_size); in test() 36 assert(pos > old_size); in test() 45 typename S::size_type old_size = s.size(); in test() local 51 assert(pos <= old_size); in test() 56 assert(pos > old_size); in test()
|
/external/pdfium/core/src/fxcodec/codec/ |
D | fx_codec.cpp | 297 FX_DWORD old_size = 0; in CheckDestSize() local 301 old_size = dest_size; in CheckDestSize() 303 if (dest_size < old_size) { in CheckDestSize() 308 old_size = dest_size; in CheckDestSize() 310 if (dest_size < old_size) { in CheckDestSize()
|
/external/valgrind/cachegrind/ |
D | cg_arch.c | 219 UInt old_size = (UInt)LLc->size; in maybe_tweak_LLc() local 223 UInt new_size = old_size; in maybe_tweak_LLc() 227 UInt old_nSets = old_size / (old_assoc * old_line_size); in maybe_tweak_LLc() 258 if (new_size == old_size && new_assoc == old_assoc) in maybe_tweak_LLc() 263 old_line_size, old_assoc, old_size); in maybe_tweak_LLc()
|
/external/bison/src/ |
D | tables.c | 147 int old_size = table_size; in table_grow() local 154 old_size, table_size); in table_grow() 161 for (/* Nothing. */; old_size < table_size; ++old_size) in table_grow() 163 table[old_size] = 0; in table_grow() 164 conflict_table[old_size] = 0; in table_grow() 165 check[old_size] = -1; in table_grow()
|
/external/e2fsprogs/lib/ext2fs/ |
D | bb_inode.c | 160 unsigned long old_size; in clear_bad_block_proc() local 176 old_size = rec->max_ind_blocks * sizeof(blk_t); in clear_bad_block_proc() 178 retval = ext2fs_resize_mem(old_size, in clear_bad_block_proc()
|
D | dblist.c | 164 unsigned long old_size; in ext2fs_add_dir_block2() local 169 old_size = dblist->size * sizeof(struct ext2_db_entry2); in ext2fs_add_dir_block2() 171 retval = ext2fs_resize_mem(old_size, (size_t) dblist->size * in ext2fs_add_dir_block2() 175 dblist->size = old_size / sizeof(struct ext2_db_entry2); in ext2fs_add_dir_block2()
|
D | badblocks.c | 111 unsigned long old_size; in ext2fs_u32_list_add() local 116 old_size = bb->size * sizeof(__u32); in ext2fs_u32_list_add() 118 retval = ext2fs_resize_mem(old_size, bb->size * sizeof(__u32), in ext2fs_u32_list_add()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 193 void *old_ptr, size_t old_size, size_t new_size ) in debug_realloc() argument 248 memcpy( new_ptr, old_ptr, old_size < new_size ? old_size : new_size ); in debug_realloc()
|
/external/opencv/cvaux/src/ |
D | cveigenobjects.cpp | 1205 CvSize img_size = avg_size, old_size = avg_size; in cvCalcCovarMatrixEx() local 1218 if( img_size != avg_size || img_size != old_size ) in cvCalcCovarMatrixEx() 1226 old_size = img_size; in cvCalcCovarMatrixEx() 1348 CvSize obj_size = avg_size, old_size = avg_size, in cvCalcEigenObjects() local 1363 if( obj_size != avg_size || obj_size != old_size ) in cvCalcEigenObjects() 1371 old_size = obj_size; in cvCalcEigenObjects() 1407 CvSize obj_size = avg_size, old_size = avg_size; in cvCalcEigenObjects() local 1420 if( obj_size != avg_size || obj_size != old_size ) in cvCalcEigenObjects() 1428 old_size = obj_size; in cvCalcEigenObjects() 1636 CvSize eig_size = avg_size, old_size = avg_size; in cvEigenDecomposite() local [all …]
|
/external/v8/src/compiler/ |
D | node-cache.cc | 50 int old_size = size_ + LINEAR_PROBE; in Resize() local 57 for (int i = 0; i < old_size; i++) { in Resize()
|
/external/protobuf/src/google/protobuf/ |
D | message_lite.cc | 278 int old_size = output->size(); in AppendPartialToString() local 280 STLStringResizeUninitialized(output, old_size + byte_size); in AppendPartialToString() 282 reinterpret_cast<uint8*>(io::mutable_string_data(output) + old_size); in AppendPartialToString()
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/ |
D | size_size_pointer.pass.cpp | 29 typename S::size_type old_size = s.size(); in test() local 35 assert(pos <= old_size); in test() 37 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 39 assert(s.size() == old_size - xlen + rlen); in test() 43 assert(pos > old_size); in test()
|
D | size_size_size_char.pass.cpp | 28 typename S::size_type old_size = s.size(); in test() local 34 assert(pos <= old_size); in test() 36 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 38 assert(s.size() == old_size - xlen + rlen); in test() 42 assert(pos > old_size); in test()
|
/external/libcxx/src/ |
D | strstream.cpp | 159 size_t old_size = static_cast<size_t> ((epptr() ? epptr() : egptr()) - eback()); in overflow() local 160 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow() 170 memcpy(buf, eback(), static_cast<size_t>(old_size)); in overflow()
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/ |
D | size_pointer.pass.cpp | 25 typename S::size_type old_size = s.size(); in test() local 31 assert(pos <= old_size); in test() 36 assert(pos > old_size); in test()
|
D | size_size_char.pass.cpp | 26 typename S::size_type old_size = s.size(); in test() local 32 assert(pos <= old_size); in test() 37 assert(pos > old_size); in test()
|