3 ms·
This is really cool, I recently wanted to implement a ARGB->RGBA conversion function with SIMD in Rust, but as far as I can tell SIMD is STILL not in stable Rus
by lyu07282 3y ago
This is really cool, I recently wanted to implement a ARGB->RGBA conversion function with SIMD in Rust, but as far as I can tell SIMD is STILL not in stable Rust :(
- lpghatguy 3y agoThe CPU-specific intrinsic stabilized a little while ago for cases where you need SIMD on a specific platform at least. A lot of crates like glam seem to only support SIMD on x86/x86-64 for that reason. I know that `wide`, `faster`, and `simdeez` are options for crates to do cross-platform SIMD in safe Rust. Eventually we'll have `std::simd`, but I don't know what the timeline is or what the blockers are.
- mirsadm 3y agoYou won't get much speed up using SIMD for such a simple task. You'll be memory bandwidth limited.
- ComputerGuru 3y agoSIMD is stable in rust, it just requires unsafe. Here's an article I wrote about using SIMD in rust, with a real-world example: https://neosmart.net/blog/using-simd-acceleration-in-rust-to-create-the-worlds-fastest-tac/ https://neosmart.net/blog/using-simd-acceleration-in-rust-to...
- 3836293648 3y agoGeneric architecture independent SIMD isn't stabilised, aka the proposed std::simd. But yeah, the x86 specific stuff is there