rssn_advanced/simd/mod.rs
1//! SIMD-optimized preset function library.
2//!
3//! The slice-iterating wrappers in this module dispatch to the 4-lane
4//! kernels under [`crate::asm_presets`]. Every kernel emits explicit
5//! `core::arch::asm!` instructions for its target ISA — there is no
6//! reliance on the compiler's auto-vectorizer (`simd_review §1`).
7//!
8//! - `arithmetic` — Batch add, mul, scalar-add, pow, cmp-eq, FMA,
9//! coefficient-merge.
10//! - `hash` — AES-NI based batch hashing for dedup.
11//! - `detect` — Runtime CPU feature detection (SSE4.2, AVX2, NEON).
12
13pub mod arithmetic;
14pub mod detect;
15pub mod hash;
16pub mod kernel;
17
18pub use arithmetic::{
19 BatchError, batch_add, batch_add_scalar, batch_cmp_eq, batch_coef_merge, batch_eval,
20 batch_eval_parallel, batch_fma, batch_mul, batch_pow,
21};
22pub use detect::{has_avx2, has_neon, has_sse42};
23pub use hash::batch_hash;
24pub use kernel::{ScalarKernel, SimdKernel, global_kernel};