4 ms·
Presumably a bounds check on the mask could be done or a safe variant exposed that does that trick under the hood. But yeah I don’t disagree that it’s “safe SIM
by vlovich123 2y ago
Presumably a bounds check on the mask could be done or a safe variant exposed that does that trick under the hood. But yeah I don’t disagree that it’s “safe SIMD” is unlikely to scratch the itch for various applications but hopefully at least it’ll scratch a lot of them enough that the remaining unsafe is reduced.
- fooker 2y agoNo, a bounds check beats the purpose of simd in these cases
- vlovich123 2y agoNot necessarily if you can hoist the bounds check outside of the loop somehow.