Y
Hacker News
new
|
ask
|
show
|
jobs
by
unwind
2853 days ago
That's not true, since C11 we have:
#include <stdlib.h> void *aligned_alloc(size_t alignment, size_t size);
which works like malloc() but lets you specify the required alignment.
2 comments
willtim
2853 days ago
Could I not just call such a function from my alternative language?
link
rurban
2851 days ago
Only for sizes <4KB
link