include/qemu/osdep.h: Add macros for pointer alignment
authorSergey Fedorov <serge.fdrv@gmail.com>
Fri, 22 Apr 2016 16:08:44 +0000 (19:08 +0300)
committerRichard Henderson <rth@twiddle.net>
Fri, 13 May 2016 00:06:40 +0000 (14:06 -1000)
commit6b587d3cda48e7ba26de8d30bf0d8a7063970715
treeea8d42502dcc0e8f1d87004bef1d5865b786f2c2
parent18a60a76147569ca9e11b0607e50ce4012fe1aaa
include/qemu/osdep.h: Add macros for pointer alignment

These macros provide a convenient way to n-byte align pointers up and
down and check if a pointer is n-byte aligned.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Message-Id: <1461341333-19646-3-git-send-email-sergey.fedorov@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
include/qemu/osdep.h