News for hackers. Stuff that matters.
Re:Zlib-rs is faster than C by vlovich123 on Monday March 17, 2025 @02:00AM (#43385562)
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.
Re:Zlib-rs is faster than C by fooker on Monday March 17, 2025 @02:13AM (#43385608)
No, a bounds check beats the purpose of simd in these cases
Re:Zlib-rs is faster than C by vlovich123 on Monday March 17, 2025 @12:37PM (#43390317)
Not necessarily if you can hoist the bounds check outside of the loop somehow.