simd-rs63 0.1.1

SIMD-accelerated Reed-Solomon RS(9,6) erasure coding over GF(2^8), with no unsafe code
Documentation
1
2
3
4
5
6
7
8
9
10
// Optimal SIMD lane count based on what swizzle_dyn can vectorize.
// See: https://doc.rust-lang.org/src/core/portable-simd/crates/core_simd/src/swizzle_dyn.rs.html
#[cfg(all(target_feature = "avx512vl", target_feature = "avx512vbmi"))]
pub const LANES: usize = 64;

#[cfg(all(target_feature = "avx2", not(all(target_feature = "avx512vl", target_feature = "avx512vbmi"))))]
pub const LANES: usize = 32;

#[cfg(not(any(target_feature = "avx2", all(target_feature = "avx512vl", target_feature = "avx512vbmi"))))]
pub const LANES: usize = 16;