41 releases

0.7.13 Oct 17, 2023
0.7.11 Jul 11, 2023
0.7.8 Feb 26, 2023
0.7.5 Oct 7, 2022
0.3.2 Nov 27, 2019

#14 in Hardware support

Download history 69927/week @ 2023-08-08 75482/week @ 2023-08-15 82500/week @ 2023-08-22 94623/week @ 2023-08-29 92238/week @ 2023-09-05 89603/week @ 2023-09-12 82333/week @ 2023-09-19 89055/week @ 2023-09-26 86250/week @ 2023-10-03 98666/week @ 2023-10-10 114279/week @ 2023-10-17 121600/week @ 2023-10-24 124303/week @ 2023-10-31 116585/week @ 2023-11-07 113895/week @ 2023-11-14 112088/week @ 2023-11-21

488,563 downloads per month
Used in 241 crates (16 directly)

Zlib OR Apache-2.0 OR MIT

13K SLoC

License:Zlib Minimum Rust Version crates.io docs.rs


A crate to help you go wide.

Specifically, this has portable "wide" data types that do their best to be SIMD when possible.

On x86, x86_64, wasm32 and aarch64 neon this is done with explicit intrinsic usage (via safe_arch), and on other architectures this is done by carefully writing functions so that LLVM hopefully does the right thing. When Rust stabilizes more explicit intrinsics then they can go into safe_arch and then they can get used here.


A crate to help you go wide.

This crate provides SIMD-compatible data types.

When possible, explicit SIMD is used with all the math operations here. As a fallback, the fact that all the lengths of a fixed length array are doing the same thing will often make LLVM notice that it should use SIMD instructions to complete the task. In the worst case, the code just becomes totally scalar (though the math is still correct, at least).

Crate Features

  • std: This causes the feature to link to std.
    • Currently this just improves the performance of sqrt when an explicit SIMD sqrt isn't available.