]> Git Repo - qemu.git/commitdiff
compiler.h: add QEMU_ALIGNED() to enforce struct alignment
authorEmilio G. Cota <[email protected]>
Wed, 8 Jun 2016 18:55:19 +0000 (14:55 -0400)
committerRichard Henderson <[email protected]>
Sat, 11 Jun 2016 22:59:33 +0000 (22:59 +0000)
Reviewed-by: Sergey Fedorov <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
Message-Id: <1465412133[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
include/qemu/compiler.h

index 8f1cc7ba674cdbee80f7798ae43415e29b1ee72b..b64f89987091fb1784f19cda8acd1c9c8201a186 100644 (file)
@@ -41,6 +41,8 @@
 # define QEMU_PACKED __attribute__((packed))
 #endif
 
+#define QEMU_ALIGNED(X) __attribute__((aligned(X)))
+
 #ifndef glue
 #define xglue(x, y) x ## y
 #define glue(x, y) xglue(x, y)
This page took 0.026381 seconds and 4 git commands to generate.