1 /* CC0 (Public domain) - see LICENSE file for details */
7 * ALIGNOF - get the alignment of a type
10 * This returns a safe alignment for the given type.
13 /* A GCC extension. */
14 #define ALIGNOF(t) __alignof__(t)
16 /* Alignment by measuring structure padding. */
17 #define ALIGNOF(t) ((char *)(&((struct { char c; t _h; } *)0)->_h) - (char *)0)
20 #endif /* CCAN_ALIGNOF_H */