Home
last modified time | relevance | path

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

1234

/external/libmicrohttpd/src/microhttpd/
Dmemorypool.c210 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/eigen/Eigen/src/Core/util/
DMemory.h152 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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/lzw/
Dftzopen.c117 FT_Offset old_size = state->stack_size; in ft_lzwstate_stack_grow() local
118 FT_Offset new_size = old_size; in ft_lzwstate_stack_grow()
125 old_size = 0; in ft_lzwstate_stack_grow()
133 if ( new_size == old_size ) in ft_lzwstate_stack_grow()
137 if ( FT_RENEW_ARRAY( state->stack, old_size, new_size ) ) in ft_lzwstate_stack_grow()
150 FT_UInt old_size = state->prefix_size; in ft_lzwstate_prefix_grow() local
151 FT_UInt new_size = old_size; in ft_lzwstate_prefix_grow()
169 if ( FT_REALLOC_MULT( state->prefix, old_size, new_size, in ft_lzwstate_prefix_grow()
177 state->prefix + old_size, in ft_lzwstate_prefix_grow()
178 old_size * sizeof ( FT_Byte ) ); in ft_lzwstate_prefix_grow()
/external/eigen/Eigen/src/Eigen2Support/
DMemory.h17 …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/
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.cc158 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/
Dmem.c77 void *OPENSSL_realloc_clean(void *ptr, size_t old_size, size_t new_size) { in OPENSSL_realloc_clean() argument
90 if (new_size < old_size) { in OPENSSL_realloc_clean()
99 memcpy(ret, ptr, old_size); in OPENSSL_realloc_clean()
100 OPENSSL_cleanse(ptr, old_size); in OPENSSL_realloc_clean()
/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/valgrind/drd/
Ddrd_malloc_wrappers.c182 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/
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/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/
Dsize_size.pass.cpp25 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/valgrind/cachegrind/
Dcg_arch.c219 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/
Dtables.c147 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/jemalloc/test/integration/
Dchunk.c123 size_t old_size, new_size, large0, large1, huge0, huge1, huge2, sz; in TEST_BEGIN() local
136 old_size = sizeof(chunk_hooks_t); in TEST_BEGIN()
138 assert_d_eq(mallctl("arena.0.chunk_hooks", &old_hooks, &old_size, in TEST_BEGIN()
252 assert_d_eq(mallctl("arena.0.chunk_hooks", &old_hooks, &old_size, in TEST_BEGIN()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec.cpp331 FX_DWORD old_size = 0; in CheckDestSize() local
335 old_size = dest_size; in CheckDestSize()
337 if (dest_size < old_size) { in CheckDestSize()
342 old_size = dest_size; in CheckDestSize()
344 if (dest_size < old_size) { in CheckDestSize()
/external/e2fsprogs/lib/ext2fs/
Dbb_inode.c160 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()
Ddblist.c164 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()
Dbadblocks.c111 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/
Du_debug_memory.c193 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/
Dcveigenobjects.cpp1205 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/
Dnode-cache.cc36 size_t old_size = size_ + kLinearProbe; in Resize() local
43 for (size_t i = 0; i < old_size; ++i) { in Resize()
/external/protobuf/src/google/protobuf/
Dmessage_lite.cc278 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/
Dsize_size_pointer.pass.cpp29 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()
Dsize_size_size_char.pass.cpp28 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/
Dstrstream.cpp159 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()

1234