4 ms·
At the other hand, the explicit Vector API will use the correct "flavor" of SIMD instructions on the platform and will gracefully fall back to non-simd version
by kaba0 6y ago
At the other hand, the explicit Vector API will use the correct "flavor" of SIMD instructions on the platform and will gracefully fall back to non-simd version if it is not supported. And as far as I know, the SIMD story is quite bad with C.
- sudosysgen 6y agoYes it's quite bad with C. With C++ and Rust it's much much better when you do it properly.
- pjmlp 6y agoWhen you do it properly is the big question.
- astrange 6y agoIt's pretty good in C with assembly, inline or not. SIMD usually involves a lot of aliasing violations and intrinsics have weird hard to read names, so I find assembly easier to deal with than C here.