#simd #x86-64

no-std x86-simd

Safe interfaces to x86 and x86_64 SIMD intrinsics

7 releases

0.2.2 Aug 7, 2024
0.2.1 Aug 7, 2024
0.1.4 Aug 5, 2024

#70 in No standard library

Download history 536/week @ 2024-08-02 31/week @ 2024-08-09 1/week @ 2024-09-13 2/week @ 2024-09-20 3/week @ 2024-09-27 1/week @ 2024-10-04

229 downloads per month

MIT license

36KB
466 lines

x86-simd

This crate provides safe (and some unsafe) interfaces to (some) x86 (and x86_64) SIMD intrinsics. This crate is not exhaustive about what it does but is rather a "best-effort" to support/wrap many commonly used SSE2+ and AVX types and functions.

This crate is built on the stable version of the rust compiler and standard library and does not required nightly portable SIMD features.

This crate has zero dependencies and it can be built with or without the standard library. This crate does not use the alloc crate. Building with the standard library (enabling the std feature, which is on by default) allows this crate to detect CPU features at run-time, which can be incredibly useful when compiling without knowing exactly which SIMD features will be available on a user's machine. Without the std feature, this crate relies entirely on the features that the compiler lists as available. This can be configured using flags to rustc -- see https://rust-lang.github.io/packed_simd/perf-guide/target-feature/rustflags.html.

If you attempt to compile or depend on this crate on an architecture that is not x86 or x86_64, this crate will produce a compiler error.

This crate may be depended on conditionally by moving it to the [target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] section in your Cargo.toml and making any reference to it in your code #[cfg(any(target_arch = "x86", target_arch = "x86_64"))].

Badges

Service Badge
Cargo Check Status Cargo Check status
Cargo Test Status Cargo Test status
Cargo Clippy Status Cargo Clippy status
Code Coverage (Coveralls) Coverage Status
Code Coverage (Codecov.io) codecov
Docs.rs Documentation
Crates.io Crates.io
Downloads
Crates.io Crates.io

No runtime deps