Content deleted Content added
→Typical alignment of C structs on x86: Use alignof to refer to alignments of types, also mention that using alignas is an alternative to pack |
|||
Line 240:
<syntaxhighlight lang="c">
#include <stdlib.h>
double *foo(void) { //create array of size 10
double *
▲ ok = posix_memalign((void**)&var, 64, 10*sizeof(double));
▲ return NULL;
▲ return var;
}
</syntaxhighlight>
|