#[cfg(any(feature = "std", all(target_feature = "aes", target_feature = "sse2")))]
mod aes128;
#[cfg(any(
feature = "std",
all(
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)
))]
mod vaes256;
#[cfg(all(
target_arch = "x86_64",
any(
feature = "std",
all(
target_feature = "avx512f",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)
)
))]
mod vaes512;
#[cfg(any(
all(
target_arch = "x86_64",
target_feature = "avx512f",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
),
all(
target_arch = "x86",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
),
not(feature = "std")
))]
mod active {
#[cfg(all(
not(all(
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)),
all(
target_feature = "aes",
target_feature = "avx",
target_feature = "sse2"
)
))]
use super::aes128::avx_aes as selected;
#[cfg(all(
not(all(
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)),
not(all(
target_feature = "aes",
target_feature = "avx",
target_feature = "sse2"
)),
all(target_feature = "aes", target_feature = "sse2")
))]
use super::aes128::sse2_aes as selected;
#[cfg(all(
not(all(
target_arch = "x86_64",
target_feature = "avx512f",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)),
all(
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)
))]
use super::vaes256 as selected;
#[cfg(all(
target_arch = "x86_64",
target_feature = "avx512f",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
))]
use super::vaes512 as selected;
#[cfg(not(all(target_feature = "aes", target_feature = "sse2")))]
pub(crate) use crate::arch::soft::Soft128 as X86Platform;
#[cfg(all(target_feature = "aes", target_feature = "sse2"))]
use crate::arch::tier::StaticPlatform;
#[cfg(all(target_feature = "aes", target_feature = "sse2"))]
pub(crate) type X86Platform = StaticPlatform<selected::Tier>;
}
#[cfg(all(
feature = "std",
not(any(
all(
target_arch = "x86_64",
target_feature = "avx512f",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
),
all(
target_arch = "x86",
target_feature = "vaes",
target_feature = "avx2",
target_feature = "aes",
target_feature = "sse2"
)
))
))]
#[path = "runtime.rs"]
mod active;
pub(crate) use active::X86Platform;