Home
last modified time | relevance | path

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

/picolibc-3.7.0-3.6.0/newlib/libc/machine/xstormy16/
Dtiny-malloc.c293 size_t old_size = old_real_size - sizeof (size_t); in realloc() local
299 memcpy (result, block_p, old_size < sz ? old_size : sz); in realloc()
366 size_t old_size; in memalign() local
371 old_size = real_size; in memalign()
374 old_size += M_ALIGN_SUB (((size_t)__malloc_end in memalign()
375 - old_size + sizeof (size_t)), in memalign()
377 if (! CAN_ALLOC_P (old_size)) in memalign()
379 block = __malloc_end = (void *)((size_t)__malloc_end - old_size); in memalign()
384 old_size += M_ALIGN ((size_t)__malloc_end + sizeof (size_t), in memalign()
386 if (! CAN_ALLOC_P (old_size)) in memalign()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dfilestrputalloc.c43 size_t old_size = sstream->size; in __file_str_put_alloc() local
44 char *old = sstream->end - old_size; in __file_str_put_alloc()
45 size_t new_size = old_size + 32; in __file_str_put_alloc()
50 sstream->pos = new + old_size; in __file_str_put_alloc()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/nvptx/
Drealloc.c25 size_t old_size = *(size_t *)((long long *)old_ptr - 1); in realloc() local
26 size_t copy_size = old_size > new_size ? new_size : old_size; in realloc()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dmremap_ea.c41 mremap_ea (__ea void *old_address, size_ea_t old_size, in mremap_ea() argument
46 old_size, new_size, flags); in mremap_ea()
50 old_size, new_size, flags); in mremap_ea()
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dnano-mallocr.c548 size_t old_size = p_to_realloc->size; in realloc() local
553 if (new_size > old_size) in realloc()
562 memset(chunk_e, '\0', new_size - old_size); in realloc()
564 old_size = new_size; in realloc()
586 old_size += r_size; in realloc()
587 p_to_realloc->size = old_size; in realloc()
598 if (new_size <= old_size) in realloc()
600 size_t extra = old_size - new_size; in realloc()
618 memcpy(mem, ptr, old_size - MALLOC_HEAD); in realloc()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/sys/
Dmman.h80 old_size, size_t new_size, int flags);
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dfread.c196 int old_size = fp->_bf._size; in fread() local
204 fp->_bf._size = old_size; in fread()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/include/
Dea.h85 __ea void *mremap_ea (__ea void *old_address, size_ea_t old_size,