ppv_lite86/
lib.rs

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(
13    target_arch = "x86_64",
14    target_feature = "sse2",
15    not(feature = "no_simd"),
16    not(miri)
17))]
18pub mod x86_64;
19#[cfg(all(
20    target_arch = "x86_64",
21    target_feature = "sse2",
22    not(feature = "no_simd"),
23    not(miri)
24))]
25use 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))]
33pub 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))]
40use self::generic as arch;
41
42pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};