Searched refs:old_size (Results 1 – 2 of 2) sorted by relevance
461 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local462 if (size <= old_size) in DefaultReallocate()469 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
217 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local218 if (size <= old_size) in DefaultReallocate()225 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()