Registry / utility / packed-simd-2

packed-simd-2

JSON →
library0.3.8rscratesunverified

Portable Packed SIMD vectors for Rust.

# Cargo.toml [dependencies] packed_simd_2 = "0.3.8"
INSTALL
IMPORT
SIG · PACKED-SIMD-2
P
packed-simd-2
utilityrustv0.3.8
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_2::f32x4;

Demonstrates SIMD vector addition using packed_simd_2.

use packed_simd_2::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 the `portable_simd` feature.
fix
Use nightly Rust and add `#![feature(portable_simd)]` to your crate root.
affects: >=0.3.0
Upgrade
Version history
0.3.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
packed-simd-2 — cargo add packed-simd-2 · libregistry