Portable SIMD is in C++26, and you can try it now
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
C++26 standardizes <simd>, a portable vector type where element type and width are part of the type and ordinary arithmetic operators compile to SIMD instructions on any target without intrinsics or per-architecture #ifdefs.