Accesses to the poll flag or the iteration counter do not
result in four byte-accesses anymore. Sigh.
/* preprocessor magic */
#define BUILD_BUG(c) do { ((void)sizeof(char[1 - 2*!!(c)])); } while(0);
#define UNUSED __attribute__((unused))
-#ifndef PACKED
-# define PACKED __attribute__((packed))
-#endif /* PACKED */
+#undef PACKED
+#define PACKED __attribute__((packed))
+#undef ALIGN
+#define ALIGN(X) __attribute__((aligned(X)))
/* number of cores */
#define CORES_X 4
uint32_t iteration;
uint32_t timers[CORES_Y][CORES_X][TIMERS];
d2q9_block_t lattice[CORES_Y][CORES_X];
-} PACKED shm_t;
+} ALIGN(8) shm_t;
#endif /* _SHARED_H_ */