Searched refs:new_ptr (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/vulkan/libvulkan/ |
D | driver.cpp | 571 void* new_ptr = nullptr; in DefaultReallocate() local 572 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate() 575 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate() 578 return new_ptr; in DefaultReallocate()
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 222 void* new_ptr = nullptr; in DefaultReallocate() local 223 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate() 226 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate() 229 return new_ptr; in DefaultReallocate()
|