MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / vma_aligned_alloc

Function vma_aligned_alloc

3rdparty/vulkan/include/vk_mem_alloc.h:3180–3189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3178namespace
3179{
3180void* vma_aligned_alloc(size_t alignment, size_t size)
3181{
3182 // alignment must be >= sizeof(void*)
3183 if(alignment < sizeof(void*))
3184 {
3185 alignment = sizeof(void*);
3186 }
3187
3188 return memalign(alignment, size);
3189}
3190} // namespace
3191#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
3192#include <cstdlib>

Callers

nothing calls this directly

Calls 1

_aligned_mallocFunction · 0.85

Tested by

no test coverage detected