• 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 mod soft;
9 mod types;
10 pub use self::types::*;
11 
12 #[cfg(all(
13     target_arch = "x86_64",
14     target_feature = "sse2",
15     not(feature = "no_simd"),
16     not(miri)
17 ))]
18 pub mod x86_64;
19 #[cfg(all(
20     target_arch = "x86_64",
21     target_feature = "sse2",
22     not(feature = "no_simd"),
23     not(miri)
24 ))]
25 use self::x86_64 as arch;
26 
27 #[cfg(any(
28     feature = "no_simd",
29     miri,
30     not(target_arch = "x86_64"),
31     all(target_arch = "x86_64", not(target_feature = "sse2"))
32 ))]
33 pub mod generic;
34 #[cfg(any(
35     feature = "no_simd",
36     miri,
37     not(target_arch = "x86_64"),
38     all(target_arch = "x86_64", not(target_feature = "sse2"))
39 ))]
40 use self::generic as arch;
41 
42 pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};
43