Home
last modified time | relevance | path

Searched refs:oldmem (Results 1 – 6 of 6) sorted by relevance

/external/u-boot/common/
Ddlmalloc.c1647 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 …]
Ddlmalloc.src2495 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 …]
/external/dlmalloc/
Dmalloc.c5214 void* dlrealloc(void* oldmem, size_t bytes) { in dlrealloc() argument
5216 if (oldmem == 0) { in dlrealloc()
5224 dlfree(oldmem); in dlrealloc()
5229 mchunkptr oldp = mem2chunk(oldmem); in dlrealloc()
5235 USAGE_ERROR_ACTION(m, oldmem); in dlrealloc()
5250 memcpy(mem, oldmem, (oc < bytes)? oc : bytes); in dlrealloc()
5251 internal_free(m, oldmem); in dlrealloc()
5259 void* dlrealloc_in_place(void* oldmem, size_t bytes) { in dlrealloc_in_place() argument
5261 if (oldmem != 0) { in dlrealloc_in_place()
5267 mchunkptr oldp = mem2chunk(oldmem); in dlrealloc_in_place()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/
Ddlmalloc.c3839 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) { in internal_realloc() argument
3845 mchunkptr oldp = mem2chunk(oldmem); in internal_realloc()
3881 USAGE_ERROR_ACTION(m, oldmem); in internal_realloc()
3899 memcpy(newmem, oldmem, (oc < bytes)? oc : bytes); in internal_realloc()
3900 internal_free(m, oldmem); in internal_realloc()
4375 void* dlrealloc(void* oldmem, size_t bytes) { in dlrealloc() argument
4376 if (oldmem == 0) in dlrealloc()
4380 dlfree(oldmem); in dlrealloc()
4388 mstate m = get_mstate_for(mem2chunk(oldmem)); in dlrealloc()
4390 USAGE_ERROR_ACTION(m, oldmem); in dlrealloc()
[all …]
/external/libffi/src/
Ddlmalloc.c3834 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) { in internal_realloc() argument
3840 mchunkptr oldp = mem2chunk(oldmem); in internal_realloc()
3876 USAGE_ERROR_ACTION(m, oldmem); in internal_realloc()
3894 memcpy(newmem, oldmem, (oc < bytes)? oc : bytes); in internal_realloc()
3895 internal_free(m, oldmem); in internal_realloc()
4370 void* dlrealloc(void* oldmem, size_t bytes) { in dlrealloc() argument
4371 if (oldmem == 0) in dlrealloc()
4375 dlfree(oldmem); in dlrealloc()
4383 mstate m = get_mstate_for(mem2chunk(oldmem)); in dlrealloc()
4385 USAGE_ERROR_ACTION(m, oldmem); in dlrealloc()
[all …]
/external/clang/lib/ARCMigrate/
DFileRemapper.cpp245 if (llvm::MemoryBuffer *oldmem = targ.dyn_cast<llvm::MemoryBuffer *>()) { in resetTarget() local
246 delete oldmem; in resetTarget()