Searched refs:oldmem (Results 1 – 2 of 2) sorted by relevance
| /openbmc/u-boot/common/ |
| H A D | dlmalloc.c | 1647 Void_t* rEALLOc(Void_t* oldmem, size_t bytes) in rEALLOc() argument 1649 Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes; in rEALLOc() 1675 fREe(oldmem); 1683 if (oldmem == NULL) return mALLOc(bytes); 1692 newp = oldp = mem2chunk(oldmem); 1706 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */ 1711 MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ); 1776 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1792 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1804 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); [all …]
|
| H A D | dlmalloc.src | 2495 Void_t* rEALLOc(Void_t* oldmem, size_t bytes) 2497 Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes; 2502 mchunkptr oldp; /* chunk corresponding to oldmem */ 2522 if (bytes == 0) { fREe(oldmem); return 0; } 2528 if (oldmem == 0) return mALLOc(bytes); 2530 newp = oldp = mem2chunk(oldmem); 2544 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */ 2548 MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ); 2613 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 2629 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); [all …]
|