• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 extern crate std;
10 
11 mod soft;
12 mod types;
13 pub use self::types::*;
14 
15 #[cfg(all(target_arch = "x86_64", not(feature = "no_simd"), not(miri)))]
16 pub mod x86_64;
17 #[cfg(all(target_arch = "x86_64", not(feature = "no_simd"), not(miri)))]
18 use self::x86_64 as arch;
19 
20 #[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64")))]
21 pub mod generic;
22 #[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64")))]
23 use self::generic as arch;
24 
25 pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};
26