Skip to content
Snippets Groups Projects
Commit 832cfb3a authored by Richard Linden's avatar Richard Linden
Browse files
parents 6bf1e9f5 d89d9cd1
No related branches found
No related tags found
No related merge requests found
...@@ -680,7 +680,8 @@ void* allocAligned(size_t size) ...@@ -680,7 +680,8 @@ void* allocAligned(size_t size)
#elif LL_DARWIN #elif LL_DARWIN
padded_allocation = ll_aligned_malloc(size_with_reserve, ALIGNMENT); padded_allocation = ll_aligned_malloc(size_with_reserve, ALIGNMENT);
#else #else
posix_memalign(&padded_allocation, ALIGNMENT, size_with_reserve); if (LL_UNLIKELY(0 != posix_memalign(&padded_allocation, 16, size)))
padded_allocation = NULL;
#endif #endif
} }
return (char*)padded_allocation + aligned_reserve; return (char*)padded_allocation + aligned_reserve;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment