Searched refs:new_size (Results 1 – 8 of 8) sorted by relevance
/picolibc-3.7.0-3.6.0/newlib/libc/machine/nvptx/ |
D | realloc.c | 19 realloc (void *old_ptr, size_t new_size) in realloc() argument 21 void *new_ptr = malloc (new_size); in realloc() 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/ |
D | mremap_ea.c | 42 size_ea_t new_size, unsigned long flags) in mremap_ea() argument 46 old_size, new_size, flags); in mremap_ea() 50 old_size, new_size, flags); in mremap_ea() 56 munmap_eaddr (res, new_size); in mremap_ea()
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | filestrputalloc.c | 45 size_t new_size = old_size + 32; in __file_str_put_alloc() local 46 char *new = realloc(old, new_size); in __file_str_put_alloc() 49 sstream->size = new_size; in __file_str_put_alloc() 51 sstream->end = new + new_size; in __file_str_put_alloc()
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | nano-mallocr.c | 150 bool __malloc_grow_chunk(chunk_t *c, size_t new_size); 285 __malloc_grow_chunk(chunk_t *c, size_t new_size) in __malloc_grow_chunk() argument 291 size_t add_size = MAX(MALLOC_MINSIZE, new_size - c->size); in __malloc_grow_chunk() 541 size_t new_size = chunk_size(size); in realloc() local 553 if (new_size > old_size) in realloc() 559 if (__malloc_grow_chunk(p_to_realloc, new_size)) in realloc() 562 memset(chunk_e, '\0', new_size - old_size); in realloc() 564 old_size = new_size; in realloc() 598 if (new_size <= old_size) in realloc() 600 size_t extra = old_size - new_size; in realloc() [all …]
|
D | mallocr.c | 1157 long new_size = max (NEXT_SIZE, AlignPage (size)); in wsbrk() local 1161 new_address = findRegion (new_address, new_size); in wsbrk() 1167 (unsigned int)VirtualAlloc (new_address, new_size, in wsbrk() 1177 gAllocatedSize = new_size; in wsbrk() 2055 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk() argument 2057 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; in mremap_chunk() 2071 new_size = (new_size + offset + SIZE_SZ + page_mask) & ~page_mask; 2073 cp = (char *)mremap((char *)p - offset, size + offset, new_size, 1); 2082 set_head(p, (new_size - offset)|IS_MMAPPED); 2085 mmapped_mem += new_size;
|
/picolibc-3.7.0-3.6.0/test/ |
D | malloc_stress.c | 178 size_t new_size = block_size[0] + randint(MAX_ALLOC); in main() local 179 uint8_t *new_block = realloc(blocks[0], new_size); in main() 180 if (new_block || new_size == 0) { in main() 182 block_size[0] = new_size; in main()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/sys/ |
D | mman.h | 80 old_size, size_t new_size, int flags);
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/include/ |
D | ea.h | 86 size_ea_t new_size, unsigned long flags);
|