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 
8 // ANDROID: Use std to allow building as a dylib.
9 #[cfg(android_dylib)]
10 extern crate std;
11 
12 mod soft;
13 mod types;
14 pub use self::types::*;
15 
16 #[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
17 pub mod x86_64;
18 #[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
19 use self::x86_64 as arch;
20 
21 #[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
22 pub mod generic;
23 #[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
24 use self::generic as arch;
25 
26 pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};
27