/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap05.c | 52 size_t old_size; /* in pages */ member 75 .old_size = 1, 84 .old_size = 1, 93 .old_size = 2, 102 .old_size = 1, 109 .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/libmicrohttpd/src/microhttpd/ |
D | memorypool.c | 210 size_t old_size, in MHD_pool_reallocate() argument 219 if ((pool->end < old_size) || (pool->end < asize)) in MHD_pool_reallocate() 222 if ((pool->pos >= old_size) && (&pool->memory[pool->pos - old_size] == old)) in MHD_pool_reallocate() 225 if (pool->pos + asize - old_size <= pool->end) in MHD_pool_reallocate() 228 pool->pos += asize - old_size; in MHD_pool_reallocate() 229 if (asize < old_size) /* shrinking - zero again! */ in MHD_pool_reallocate() 230 memset (&pool->memory[pool->pos], 0, old_size - asize); in MHD_pool_reallocate() 236 if (asize <= old_size) in MHD_pool_reallocate() 243 memcpy (ret, old, old_size); in MHD_pool_reallocate()
|
/external/syslinux/gpxe/src/interface/efi/ |
D | efi_umalloc.c | 49 size_t old_size; in efi_urealloc() local 79 copy_from_user ( &old_size, old_ptr, -EFI_PAGE_SIZE, in efi_urealloc() 80 sizeof ( old_size ) ); in efi_urealloc() 82 ( (old_size < new_size) ? old_size : new_size )); in efi_urealloc() 83 old_pages = ( EFI_SIZE_TO_PAGES ( old_size ) + 1 ); in efi_urealloc()
|
/external/eigen/Eigen/src/Core/util/ |
D | Memory.h | 188 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/compiler-rt/lib/msan/ |
D | msan_allocator.cc | 186 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/boringssl/src/crypto/ |
D | mem.c | 79 void *OPENSSL_realloc_clean(void *ptr, size_t old_size, size_t new_size) { in OPENSSL_MSVC_PRAGMA() 90 if (new_size < old_size) { in OPENSSL_MSVC_PRAGMA() 99 OPENSSL_memcpy(ret, ptr, old_size); in OPENSSL_MSVC_PRAGMA() 100 OPENSSL_cleanse(ptr, old_size); in OPENSSL_MSVC_PRAGMA()
|
/external/protobuf/src/google/protobuf/io/ |
D | zero_copy_stream_impl_lite.cc | 161 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/v8/src/wasm/ |
D | wasm-code-specialization.cc | 67 uint32_t old_size, in RelocateMemoryReferences() argument 72 DCHECK(old_start != new_start || old_size != new_size); in RelocateMemoryReferences() 74 old_mem_size = old_size; in RelocateMemoryReferences() 86 void CodeSpecialization::PatchTableSize(uint32_t old_size, uint32_t new_size) { in PatchTableSize() argument 88 DCHECK(old_size != 0 || new_size != 0); in PatchTableSize() 89 old_function_table_size = old_size; in PatchTableSize()
|
D | wasm-code-specialization.h | 29 void RelocateMemoryReferences(Address old_start, uint32_t old_size, 35 void PatchTableSize(uint32_t old_size, uint32_t new_size);
|
D | wasm-js.cc | 538 int old_size = old_array->length(); in WebAssemblyTableGrow() local 543 new_size64 += old_size; in WebAssemblyTableGrow() 551 if (new_size64 < old_size || new_size64 > max_size64) { in WebAssemblyTableGrow() 552 thrower.RangeError(new_size64 < old_size ? "trying to shrink table" in WebAssemblyTableGrow() 559 static_cast<uint32_t>(new_size - old_size)); in WebAssemblyTableGrow() 561 if (new_size != old_size) { in WebAssemblyTableGrow() 564 for (int i = 0; i < old_size; ++i) new_array->set(i, old_array->get(i)); in WebAssemblyTableGrow() 566 for (int i = old_size; i < new_size; ++i) new_array->set(i, null); in WebAssemblyTableGrow() 572 return_value.Set(old_size); in WebAssemblyTableGrow() 679 uint32_t old_size = in WebAssemblyMemoryGrow() local [all …]
|
/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/syslinux/gpxe/src/core/ |
D | malloc.c | 258 size_t old_size; in realloc() local 283 old_size = ( old_total_size - in realloc() 286 ( ( old_size < new_size ) ? old_size : new_size ) ); in realloc()
|
/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/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/ |
D | size_size.pass.cpp | 26 const typename S::size_type old_size = s.size(); in test() local 28 if (pos <= old_size) in test() 44 assert(pos > old_size); in test() 55 const typename S::size_type old_size = s.size(); in test() local 57 if (pos <= old_size) in test() 73 assert(pos > old_size); in test()
|
/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/swiftshader/third_party/subzero/src/ |
D | IceAssembler.cpp | 114 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/pdfium/core/fxcodec/codec/ |
D | fx_codec.cpp | 308 uint32_t old_size = 0; in CheckDestSize() local 312 old_size = dest_size; in CheckDestSize() 314 if (dest_size < old_size) { in CheckDestSize() 319 old_size = dest_size; in CheckDestSize() 321 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 | 164 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()
|
D | dblist.c | 137 unsigned long old_size; in ext2fs_add_dir_block2() local 142 old_size = dblist->size * sizeof(struct ext2_db_entry2); in ext2fs_add_dir_block2() 144 retval = ext2fs_resize_mem(old_size, (size_t) dblist->size * in ext2fs_add_dir_block2() 148 dblist->size = old_size / sizeof(struct ext2_db_entry2); in ext2fs_add_dir_block2()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_asm_annotation.c | 89 int old_size = annotation->ann_size; in annotation_array_ensure_space() local 96 memset(annotation->ann + old_size, 0, in annotation_array_ensure_space() 97 (annotation->ann_size - old_size) * sizeof(struct annotation)); in annotation_array_ensure_space()
|
/external/libcxx/src/ |
D | strstream.cpp | 161 size_t old_size = static_cast<size_t> ((epptr() ? epptr() : egptr()) - eback()); in overflow() local 162 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow() 172 if (old_size != 0) { in overflow() 174 memcpy(buf, eback(), static_cast<size_t>(old_size)); in overflow()
|
/external/jemalloc/test/integration/ |
D | chunk.c | 123 size_t old_size, new_size, large0, large1, huge0, huge1, huge2, sz; in TEST_BEGIN() local 149 old_size = sizeof(chunk_hooks_t); in TEST_BEGIN() 152 &old_size, (void *)&new_hooks, new_size), 0, in TEST_BEGIN() 271 &old_size, NULL, 0), 0, "Unexpected chunk_hooks error"); in TEST_BEGIN()
|
/external/swiftshader/third_party/subzero/runtime/ |
D | szrt_asan.c | 237 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()
|