x86-simd

Crates.iox86-simd
lib.rsx86-simd
version0.2.2
sourcesrc
created_at2024-08-04 06:22:55.908921
updated_at2024-08-07 05:06:55.601584
descriptionSafe interfaces to x86 and x86_64 SIMD intrinsics
homepage
repositoryhttps://github.com/vcfxb/x86-simd
max_upload_size
id1324750
size41,730
Venus Xeon-Blonde (vcfxb)

documentation

https://docs.rs/x86-simd

README

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
Commit count: 0

cargo fmt