Skip to content

GNU C/C++ Vector Extensions

gcc.gnu.org
4 pointspillmillipedes1 comment
On HN

Comments

this is my preferred way of writing SIMD code, but it seems relatively unknown compared to the immintrin library or other, more modern SIMD libs.

bonus fact: if you explore e.g. clang's immintrin headers, you will quickly discover that every single SIMD function and type is just a one-line wrapper around this API, making them mutually compatible.

also, unlike some template-based solutions, clang can easily perform optimizations on these types: https://godbolt.org/z/EvMcxoGeG

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.