| ▲ | GNU C/C++ Vector Extensions(gcc.gnu.org) | |
| 3 points by pillmillipedes 6 hours ago | 1 comments | ||
| ▲ | pillmillipedes 6 hours ago | parent [-] | |
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 | ||