1#![no_std]
2
3// Design:
4// - safety: safe creation of any machine type is done only by instance methods of a
5// Machine (which is a ZST + Copy type), which can only by created unsafely or safely
6// through feature detection (e.g. fn AVX2::try_get() -> Option<Machine>).
7
8mod soft;
9mod types;
10pub use self::types::*;
11
12#[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
13pub mod x86_64;
14#[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
15use self::x86_64 as arch;
16
17#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
18pub mod generic;
19#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
20use self::generic as arch;
21
22pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};
23