Skip to main content

Module sve

Module sve 

Source
Expand description

Scalar fallback for ARM SVE targets. Hardware SVE intrinsics are not yet implemented; all operations use the portable scalar path from super::mod.rs.

SVE operates on variable-length vectors (128–2048 bits depending on hardware). When Rust stabilises core::arch::aarch64 SVE intrinsics, replace the bodies below with predicated vector loops.

Build with: RUSTFLAGS=“-C target-feature=+sve” cargo build –target aarch64-unknown-linux-gnu

Functions§

dot_f64_sve
Safety
fused_and_popcount_sve
Fused AND + popcount (portable fallback).
fused_xor_popcount_sve
Fused XOR + popcount using SVE.
hamming_distance_sve
Hamming distance between two packed bitstream slices.
max_f64_sve
Safety
pack_sve
Pack u8 bit array into u64 words (portable fallback).
popcount_sve
Count set bits (portable fallback).
scale_f64_sve
Safety
softmax_inplace_f64_sve
In-place softmax (portable fallback for SVE).
sum_f64_sve
Safety