/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | mem.c | 474 mem_trim(void *rmem, mem_size_t newsize) in mem_trim() argument 484 newsize = LWIP_MEM_ALIGN_SIZE(newsize); in mem_trim() 486 if (newsize < MIN_SIZE_ALIGNED) { in mem_trim() 488 newsize = MIN_SIZE_ALIGNED; in mem_trim() 491 if (newsize > MEM_SIZE_ALIGNED) { in mem_trim() 515 if (newsize > size) { in mem_trim() 519 if (newsize == size) { in mem_trim() 534 ptr2 = ptr + SIZEOF_STRUCT_MEM + newsize; in mem_trim() 552 MEM_STATS_DEC_USED(used, (size - newsize)); in mem_trim() 562 ptr2 = ptr + SIZEOF_STRUCT_MEM + newsize; in mem_trim() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/ |
A D | pad.sh | 21 newsize=$((((($filesize - 1) >> 12) + 1) << 12)) 22 padcount=$(($newsize - $filesize))
|
/AliOS-Things-master/components/ramfs/src/ |
A D | ramfs_adapt.c | 19 void *ramfs_mm_realloc(void *oldmem, uint32_t newsize) in ramfs_mm_realloc() argument 21 return krhino_mm_realloc(oldmem, newsize); in ramfs_mm_realloc()
|
/AliOS-Things-master/components/uvoice/internal/ |
A D | uvoice_alios.h | 112 static inline void *snd_realloc(void *old, size_t newsize, int flags) in snd_realloc() argument 117 mem = realloc(old, newsize); in snd_realloc() 120 mem = iram_heap_malloc(newsize); in snd_realloc() 123 memset(mem, 0, newsize); in snd_realloc() 126 void *mem = realloc(old, newsize); in snd_realloc() 128 memset(mem, 0, newsize); in snd_realloc()
|
A D | uvoice_aos.h | 74 static inline void *snd_realloc(void *old, size_t newsize, int flags) in snd_realloc() argument 76 void *mem = aos_realloc(old, newsize); in snd_realloc() 78 memset(mem, 0, newsize); in snd_realloc()
|
A D | uvoice_amp.h | 81 static inline void *snd_realloc(void *old, size_t newsize, int flags) in snd_realloc() argument 83 void *mem = amp_realloc(old, newsize); in snd_realloc() 85 memset(mem, 0, newsize); in snd_realloc()
|
A D | uvoice_linux.h | 90 static inline void *snd_realloc(void *old, size_t newsize, int flags) in snd_realloc() argument 92 void *mem = realloc(old, newsize); in snd_realloc() 94 memset(mem, 0, newsize); in snd_realloc()
|
/AliOS-Things-master/components/ramfs/internal/ |
A D | ramfs_adapt.h | 36 void *ramfs_mm_realloc(void *oldmem, uint32_t newsize);
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_mm.c | 845 void *krhino_mm_realloc(void *oldmem, size_t newsize) in krhino_mm_realloc() argument 850 uint32_t app_malloc = newsize & AOS_UNSIGNED_INT_MSB; in krhino_mm_realloc() 851 newsize = newsize & (~AOS_UNSIGNED_INT_MSB); in krhino_mm_realloc() 854 tmp = k_mm_realloc(g_kmm_head, oldmem, newsize); in krhino_mm_realloc() 861 if (tmp == NULL && newsize != 0) { in krhino_mm_realloc() 864 printf("WARNING, realloc failed!!!! newsize : %d\r\n", newsize); in krhino_mm_realloc()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | qjsc.c | 89 size_t newsize = lp->size + (lp->size >> 1) + 4; in namelist_add() local 91 realloc(lp->array, sizeof(lp->array[0]) * newsize); in namelist_add() 94 lp->size = newsize; in namelist_add()
|
A D | run-test262.c | 294 size_t newsize = lp->size + (lp->size >> 1) + 4; in namelist_add() local 295 char **a = realloc(lp->array, sizeof(lp->array[0]) * newsize); in namelist_add() 299 lp->size = newsize; in namelist_add()
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_cjson.c | 970 size_t newsize = 0; in ensure() local 999 newsize = INT_MAX; in ensure() 1004 newsize = needed * 2; in ensure() 1009 newbuffer = (unsigned char *)p->hooks.reallocate(p->buffer, newsize); in ensure() 1019 newbuffer = (unsigned char *)p->hooks.allocate(newsize); in ensure() 1032 p->length = newsize; in ensure()
|
/AliOS-Things-master/kernel/rhino/include/ |
A D | k_mm.h | 252 void *krhino_mm_realloc(void *oldmem, size_t newsize);
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/net_os/ |
A D | net_memory.h | 19 void *rt_realloc(void *rmem, size_t newsize);
|
A D | s_memory.h | 14 extern void *s_realloc(void *rmem, size_t newsize,char* func,unsigned int line);
|
/AliOS-Things-master/components/cjson/src/ |
A D | cJSON.c | 376 size_t newsize = 0; in ensure() local 411 newsize = INT_MAX; in ensure() 420 newsize = needed * 2; in ensure() 426 newbuffer = (unsigned char*)p->hooks.reallocate(p->buffer, newsize); in ensure() 439 newbuffer = (unsigned char*)p->hooks.allocate(newsize); in ensure() 454 p->length = newsize; in ensure()
|
/AliOS-Things-master/components/freetype/src/bdf/ |
A D | bdflib.c | 466 unsigned long newsize = oldsize + ( oldsize >> 1 ) + 5; in _bdf_list_ensure() local 476 else if ( newsize < oldsize || newsize > bigsize ) in _bdf_list_ensure() 477 newsize = bigsize; in _bdf_list_ensure() 479 if ( FT_RENEW_ARRAY( list->field, oldsize, newsize ) ) in _bdf_list_ensure() 482 list->size = newsize; in _bdf_list_ensure()
|
/AliOS-Things-master/components/minilibc/include/ |
A D | mm.h | 485 void *kmm_realloc(void *oldmem, size_t newsize);
|
/AliOS-Things-master/components/SDL2/src/stdlib/ |
A D | SDL_malloc.c | 1119 void *mspace_realloc(mspace msp, void *mem, size_t newsize); 3764 size_t newsize = sp->size - extra; in sys_trim() local 3766 if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != in sys_trim() 3768 || (CALL_MUNMAP(sp->base + newsize, extra) == 0)) { in sys_trim() 3962 size_t newsize = oldsize + m->topsize; in internal_realloc() local 3963 size_t newtopsize = newsize - nb; in internal_realloc() 4047 size_t newsize = chunksize(p) - leadsize; in internal_memalign() local 4051 newp->head = (newsize | CINUSE_BIT); in internal_memalign() 4053 set_inuse(m, newp, newsize); in internal_memalign()
|
/AliOS-Things-master/components/SDL2/src/render/ |
A D | SDL_render.c | 273 size_t newsize = current_allocation * 2; in SDL_AllocateRenderVertices() local 275 while (newsize < needed) { in SDL_AllocateRenderVertices() 276 newsize *= 2; in SDL_AllocateRenderVertices() 278 ptr = SDL_realloc(renderer->vertex_data, newsize); in SDL_AllocateRenderVertices() 284 renderer->vertex_data_allocation = newsize; in SDL_AllocateRenderVertices()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/ |
A D | duktape.c | 58404 DUK_ASSERT_DISABLE(newsize >= 0); 58409 if (newsize == 0) { 58443 DUK_ASSERT(newsize > 0); 58445 if (res || newsize == 0) { 58462 DUK_ASSERT_DISABLE(newsize >= 0); 58490 if (newsize == 0) { 58511 DUK_ASSERT_DISABLE(newsize >= 0); 58513 if (newsize == 0) { 58566 DUK_ASSERT(newsize > 0); 58568 if (res || newsize == 0) { [all …]
|