1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! A helper library to make SIMD more friendly.

mod fallback;
mod traits;
mod combinators;

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
mod avx;

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
mod sse42;

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86;

pub use traits::{SimdF32, SimdMask32, F32x4};

pub use combinators::{SimdFnF32, ThunkF32, ThunkF32x4};

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub use avx::{AvxF32, AvxMask32};

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub use sse42::{Sse42F32, Sse42Mask32};

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub use x86::{count, GeneratorF32, run_f32, run_f32x4};