3 ms·
Even without a -ffast-math flag, the current stable Rust compiler will vectorize loops on integer types. https://godbolt.org/z/KjErzacfv https://godbolt.org/z/
by cbm-vic-20 3y ago
Even without a -ffast-math flag, the current stable Rust compiler will vectorize loops on integer types.
https://godbolt.org/z/KjErzacfv https://godbolt.org/z/KjErzacfv
Edit: ...and I now realize who I responded to, I'm sure you already know this. :)
- galangalalgol 3y agoLoops on floats are fine, its just reduction operations that hit the issue with the associativity assumption for floats leading to UB. You can trick it by making f32x16 types like the wide crate does or if you use nightly simba can do it with const generic expressions.