Home
last modified time | relevance | path

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

/glibc-2.36/hurd/
Dhurdmalloc.c319 unsigned int old_size; in realloc() local
349 old_size = (1 << (i + LOG2_MIN_SIZE)) - HEADER_SIZE; in realloc()
351 if (new_size <= old_size in realloc()
352 && new_size > (((old_size + HEADER_SIZE) >> 1) - HEADER_SIZE)) in realloc()
363 (int) (old_size < new_size ? old_size : new_size)); in realloc()
/glibc-2.36/malloc/
Ddynarray_resize_clear.c26 size_t old_size = list->used; in __libc_dynarray_resize_clear() local
31 memset (array + (old_size * element_size), 0, in __libc_dynarray_resize_clear()
32 (size - old_size) * element_size); in __libc_dynarray_resize_clear()
Dmalloc.c2503 INTERNAL_SIZE_T old_size, size_t minsize, in sysmalloc_mmap_fallback() argument
2510 size = ALIGN_UP (size + old_size, pagesize); in sysmalloc_mmap_fallback()
2544 INTERNAL_SIZE_T old_size; /* its size */ in sysmalloc() local
2601 old_size = chunksize (old_top); in sysmalloc()
2602 old_end = (char *) (chunk_at_offset (old_top, old_size)); in sysmalloc()
2611 assert ((old_top == initial_top (av) && old_size == 0) || in sysmalloc()
2612 ((unsigned long) (old_size) >= MINSIZE && in sysmalloc()
2617 assert ((unsigned long) (old_size) < (unsigned long) (nb + MINSIZE)); in sysmalloc()
2628 if ((long) (MINSIZE + nb - old_size) > 0 in sysmalloc()
2629 && grow_heap (old_heap, MINSIZE + nb - old_size) == 0) in sysmalloc()
[all …]
Dtst-interpose-aux.c193 size_t old_size = header->allocation_size - sizeof (struct allocation_header); in realloc_internal() local
194 if (old_size >= new_size) in realloc_internal()
200 memcpy (newptr, ptr, old_size); in realloc_internal()
Ddynarray-skeleton.c384 size_t old_size = list->u.dynarray_header.used; in DYNARRAY_NAME() local
389 for (size_t i = old_size; i < size; ++i) in DYNARRAY_NAME()
/glibc-2.36/elf/
Ddl-minimal-malloc.c113 size_t old_size = alloc_ptr - alloc_last_block; in __minimal_realloc() local
116 return new != ptr ? memcpy (new, ptr, old_size) : new; in __minimal_realloc()
/glibc-2.36/stdlib/
Dtst-arc4random-thread.c121 size_t old_size = dynarray_blob_size (&global_result); in copy_result_to_global() local
124 old_size + dynarray_blob_size (result))); in copy_result_to_global()
125 memcpy (dynarray_blob_begin (&global_result) + old_size, in copy_result_to_global()
/glibc-2.36/libio/
Dwgenops.c147 size_t old_size = (fp->_wide_data->_IO_read_end in libc_hidden_def() local
150 new_size = 2 * old_size; in libc_hidden_def()
154 __wmemcpy (new_buf + (new_size - old_size), in libc_hidden_def()
155 fp->_wide_data->_IO_read_base, old_size); in libc_hidden_def()
157 _IO_wsetg (fp, new_buf, new_buf + (new_size - old_size), in libc_hidden_def()
Dgenops.c1009 size_t old_size = fp->_IO_read_end - fp->_IO_read_base; in libc_hidden_def() local
1011 new_size = 2 * old_size; in libc_hidden_def()
1015 memcpy (new_buf + (new_size - old_size), fp->_IO_read_base, in libc_hidden_def()
1016 old_size); in libc_hidden_def()
1018 _IO_setg (fp, new_buf, new_buf + (new_size - old_size), in libc_hidden_def()
/glibc-2.36/argp/
Dargp-fmtstream.c380 size_t old_size = fs->end - fs->buf; in __argp_fmtstream_ensure() local
381 size_t new_size = old_size + amount; in __argp_fmtstream_ensure()
384 if (new_size < old_size || ! (new_buf = realloc (fs->buf, new_size))) in __argp_fmtstream_ensure()
/glibc-2.36/locale/programs/
Dsimple-hash.c145 unsigned long int old_size = htab->size; in insert_entry_2() local
152 for (idx = 1; idx <= old_size; ++idx) in insert_entry_2()
/glibc-2.36/ChangeLog.old/
DChangeLog.1714118 (long) (MINSIZE + nb - old_size) is positive.