diff options
Diffstat (limited to '')
-rw-r--r-- | libsimple/memalign.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsimple/memalign.h b/libsimple/memalign.h index 046edd4..466de3e 100644 --- a/libsimple/memalign.h +++ b/libsimple/memalign.h @@ -1,5 +1,9 @@ /* See LICENSE file for copyright and license details. */ +/* + * Alignment must be a power of 2. + */ + _LIBSIMPLE_GCC_ONLY(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__))) static inline void *libsimple_vmemalignn(size_t __alignment, size_t __n, va_list __ap) { return libsimple_vmemalignzn(0, __alignment, __n, __ap); } |