Searched refs:new_size (Results 1 – 3 of 3) sorted by relevance
| /TwlSDK-5.1.0/build/demos.TWL/crypto/rsa-1/src/ |
| D | main.c | 166 static void* MyRealloc(void* ptr, u32 new_size, u32 old_size) in MyRealloc() argument 172 buf = OS_Alloc(new_size+4); in MyRealloc() 173 *(u32*)buf = new_size; in MyRealloc() 175 total_allocated_size += new_size; in MyRealloc() 176 … OS_TPrintf("Reallocate %d bytes from %p: total %d bytes\n", new_size, ptr, total_allocated_size); in MyRealloc() 185 if ((buf = OS_Alloc(new_size)) == NULL) in MyRealloc() 190 MI_CpuCopy8(ptr, buf, MIN(new_size, old_size)); in MyRealloc()
|
| /TwlSDK-5.1.0/build/demos.TWL/crypto/sign-2/src/ |
| D | main.c | 133 static void* MyRealloc(void* ptr, u32 new_size, u32 old_size) in MyRealloc() argument 139 buf = OS_Alloc(new_size+4); in MyRealloc() 140 *(u32*)buf = new_size; in MyRealloc() 142 total_allocated_size += new_size; in MyRealloc() 143 … OS_TPrintf("Reallocate %d bytes from %p: total %d bytes\n", new_size, ptr, total_allocated_size); in MyRealloc() 152 if ((buf = OS_Alloc(new_size)) == NULL) in MyRealloc() 157 MI_CpuCopy8(ptr, buf, MIN(new_size, old_size)); in MyRealloc()
|
| /TwlSDK-5.1.0/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()
|