Skip to content
Snippets Groups Projects
Commit 0222829e authored by Karl Stiefvater (qarl)'s avatar Karl Stiefvater (qarl)
Browse files

fix parameter mixup in linux posix_memalign.

parent 9d729303
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ inline void* ll_aligned_malloc_16(size_t size) // returned hunk MUST be freed wi ...@@ -42,7 +42,7 @@ inline void* ll_aligned_malloc_16(size_t size) // returned hunk MUST be freed wi
return malloc(size); // default osx malloc is 16 byte aligned. return malloc(size); // default osx malloc is 16 byte aligned.
#else #else
void *rtn; void *rtn;
if (LL_LIKELY(0 == posix_memalign(&rtn, alignment, 16))) if (LL_LIKELY(0 == posix_memalign(&rtn, 16, size)))
{ {
return rtn; return rtn;
} }
......
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