#![allow(unused_imports)]
#![allow(dead_code)]
#[cfg(feature = "simd")]
pub mod wide;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86;
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
pub mod arm;
#[cfg(target_arch = "wasm32")]
pub mod wasm;
pub struct SimdDetector {
has_sse2: bool,
has_sse4_1: bool,
has_avx: bool,
has_avx2: bool,
has_avx512: bool,
has_neon: bool,
has_wasm_simd128: bool,
}
impl Default for SimdDetector {
fn default() -> Self {
Self::new()
}
}
impl SimdDetector {
pub fn new() -> Self {
Self {
has_sse2: false,
has_sse4_1: false,
has_avx: false,
has_avx2: false,
has_avx512: false,
has_neon: false,
has_wasm_simd128: false,
}
}
pub fn recommended_simd_width<T: crate::Transcendental>() -> usize {
1
}
}
#[cfg(feature = "simd")]
pub use wide::*;