Re:A bug story: data alignment on x86
by saynsedit on Wednesday November 09, 2016 @04:16PM
(#12914750)
It's not convoluted. It's actually clear and well-defined making it easier to reason about.
I'd call compiler specific alignment attributes more arcane, convoluted, and susceptible to future bugs.
Vectorization isn't a panacea. You need to benchmark to be sure, lacking that I expect GCC to be better at optimizing code than you. If you disagree, please manually write a vectorized one that handles non-aligned addition and post your results :)
I prefer to just add alignment specification and move on, assuming I don't care about portability. If portability matters, reread my original post ;)