To SIMD and beyond: Optimizing a simple comparison routine
To SIMD and beyond: Optimizing a simple comparison routine
zig.news
To SIMD and beyond: Optimizing a simple comparison routine
I won't bore you with the backstory (and I didn't want to draw a bunch of 3d diagrams), so I'll jump...

InspectorBoat uses godbolt to analyze a Zig comparison routine for SWAR (SIMD-within-a-register) vectorized operation.