Registry / utility / packed-simd

packed-simd

JSON →
library0.3.9rscratesunverified

Portable Packed SIMD vectors for Rust, enabling cross-platform SIMD operations.

# Cargo.toml [dependencies] packed_simd = "0.3.9"
INSTALL
IMPORT
SIG · PACKED-SIMD
P
packed-simd
utilityrustv0.3.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

f32x4
use packed_simd::f32x4;

Demonstrates creating and adding two SIMD vectors.

use packed_simd::f32x4; fn main() { let a = f32x4::new(1.0, 2.0, 3.0, 4.0); let b = f32x4::new(5.0, 6.0, 7.0, 8.0); let c = a + b; println!("{:?}", c); }
Debug
Known issues
gotchaRequires nightly Rust and specific target features (e.g., SSE2, AVX2) enabled via RUSTFLAGS or target-cpu.
fix
Use `#![feature(portable_simd)]` on nightly and compile with `-C target-feature=+sse2,+avx2` or similar.
affects: >=0.3.0
Upgrade
Version history
0.3.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
packed-simd — cargo add packed-simd · libregistry