5 ms·
google has a mature C++ library for portable SIMD. The original article seems to be a translation of the excellent algorithmica site which had it in C++. https
by npalli 2y ago
google has a mature C++ library for portable SIMD. The original article seems to be a translation of the excellent algorithmica site which had it in C++.
https://github.com/google/highway https://github.com/google/highway
- ryao 2y agoYou can do portable SIMD in GNU C/C++ using the vector extension: https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
- swiftcoder 2y agoI'm not sure that "portable" and "only works on one specific compiler vendor" are very compatible concepts
- bigpingo 2y agogcc is available on and targets more platforms than rust. So if GNU C is not considered portable you can forget about 'portable rust'.
- swiftcoder 2y agoPortability in the C and C++ worlds generally means across standard-conforming compilers, not just across platforms