Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 3 of 3) sorted by relevance

/TwlSDK-5.4/build/demos.TWL/crypto/rsa-1/src/
Dmain.c167 static void* MyRealloc(void* ptr, u32 new_size, u32 old_size) in MyRealloc() argument
173 buf = OS_Alloc(new_size+4); in MyRealloc()
174 *(u32*)buf = new_size; in MyRealloc()
176 total_allocated_size += new_size; in MyRealloc()
177 … OS_TPrintf("Reallocate %d bytes from %p: total %d bytes\n", new_size, ptr, total_allocated_size); in MyRealloc()
186 if ((buf = OS_Alloc(new_size)) == NULL) in MyRealloc()
191 MI_CpuCopy8(ptr, buf, MIN(new_size, old_size)); in MyRealloc()
/TwlSDK-5.4/build/demos.TWL/crypto/sign-2/src/
Dmain.c134 static void* MyRealloc(void* ptr, u32 new_size, u32 old_size) in MyRealloc() argument
140 buf = OS_Alloc(new_size+4); in MyRealloc()
141 *(u32*)buf = new_size; in MyRealloc()
143 total_allocated_size += new_size; in MyRealloc()
144 … OS_TPrintf("Reallocate %d bytes from %p: total %d bytes\n", new_size, ptr, total_allocated_size); in MyRealloc()
153 if ((buf = OS_Alloc(new_size)) == NULL) in MyRealloc()
158 MI_CpuCopy8(ptr, buf, MIN(new_size, old_size)); in MyRealloc()
/TwlSDK-5.4/build/tools/bin2obj/
Dsection.c288 int new_size = s->size + strlen(string) + 1; in section_add_string() local
292 if (NULL == (new_ptr = malloc(new_size))) in section_add_string()
303 s->size = new_size; in section_add_string()