Commit Graph

4 Commits

Author SHA1 Message Date
Rui Ueyama 5257ee0f20 Make an array of at least 16 bytes long to have alignment of at least 16 bytes
Quote from AMD64 System V ABI: "An array uses the same alignment as
its elements, except that a local or global array variable of length
at least 16 bytes or a C99 variable-length array variable always has
alignment of at least 16 bytes."
2020-12-07 12:00:06 +09:00
Rui Ueyama 8b8f3de48b Use long or ulong instead of int for some expressions 2020-12-07 12:00:06 +09:00
Rui Ueyama 310a87e15e [GNU] Allow a variable as an operand of _Alignof 2020-12-07 12:00:06 +09:00
Rui Ueyama 9df51789e7 Add _Alignof and _Alignas 2020-12-07 12:00:06 +09:00