The alignas
standard C specifier can
be used to ensure proper alignment of local memory. In the following example, the
reals
is aligned to 16 byte boundary.
alignas(16) const int32 reals[8] =
{32767, 23170, 0, -23170, -32768, -23170, 0, 23170};
//align to 16 bytes boundary, equivalent to "alignas(v4int32)"