Searched refs:new_size (Results 1 – 3 of 3) sorted by relevance
| /TwlSDK-5.5/build/demos.TWL/crypto/rsa-1/src/ |
| D | main.c | 167 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.5/build/demos.TWL/crypto/sign-2/src/ |
| D | main.c | 134 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.5/build/tools/bin2obj/ |
| D | section.c | 288 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()
|