
Performance
Port an SSE Intrinsics Loop to AVX2
Convert a 128-bit SSE integer loop to 256-bit AVX2: new types, a step of eight, the -mavx2 flag, runtime dispatch and the lane-crossing trap.
6 min read
Tag
2 posts

Convert a 128-bit SSE integer loop to 256-bit AVX2: new types, a step of eight, the -mavx2 flag, runtime dispatch and the lane-crossing trap.

Learn SIMD from scratch with C intrinsics for SSE, AVX2 and ARM NEON: loads, arithmetic, masks, shuffles, reductions, tails, dispatch, testing and pitfalls.