News for hackers. Stuff that matters.
Re:C Is Not Suited to SIMD by TinkersW on Tuesday January 28, 2025 @09:42AM (#42852843)
The article seems to conflate C and C++ in its very first sentence, though in reality these are very different languages. In C++ you can use std::array, and you can make your SIMD containers use restrict to make it more like Fortran.

Anyway auto-vectorization will never compete with intrinsics for performance, so this all seems rather silly. Try expressing pshub in auto-vectorizer. Or a bunch of optimal load/swizzles to out perform gather.

There are no comments on this comment yet.