Writing fast and portable SIMD algorithms using packed_simd
is, unfortunately, not trivial. There are many pitfals that one should be aware of, and some idioms that help avoid those pitfalls.
This book attempts to document these best practices and provides practical examples on how to apply the tips to your code.