
20 Aug
2011
20 Aug
'11
8:07 p.m.
On Saturday, August 20, 2011 09:28:43 Marek Vasut wrote:
- __u32 datab[4];
- __u8 datab[16] __attribute__((aligned(4))); __u8 *data_buf = (__u8 *)datab;
leverage a union to avoid attributes: union { __u32 u32[4]; __u8 u8[16]; } datab; __u8 *data_buf = datab.u8;
also, it isn't "anti-aliasing complaints", it's "fix strict aliasing violations". "anti-aliasing" is something completely different in the computing world :p. -mike