1 //! Run-time feature detection on PowerPC64.
3 /// Checks if `powerpc64` feature is enabled.
5 #[unstable(feature = "stdsimd", issue = "27731")]
6 #[allow_internal_unstable(stdsimd_internal,stdsimd)]
7 macro_rules
! is_powerpc64_feature_detected
{
9 cfg
!(target_feature
= "altivec") ||
10 $
crate::detect
::check_for($
crate::detect
::Feature
::altivec
)
13 cfg
!(target_feature
= "vsx") ||
14 $
crate::detect
::check_for($
crate::detect
::Feature
::vsx
)
17 cfg
!(target_feature
= "power8") ||
18 $
crate::detect
::check_for($
crate::detect
::Feature
::power8
)
21 is_powerpc64_feature_detected
!($t
);
23 ($t
:tt
) => { compile_error!(concat!("unknown powerpc64 target feature: ", $t)) }
;
27 /// PowerPC64 CPU Feature enum. Each variant denotes a position in a bitset
28 /// for a particular feature.
30 /// PLEASE: do not use this, it is an implementation detail subject to change.
32 #[allow(non_camel_case_types)]
34 #[unstable(feature = "stdsimd_internal", issue = "0")]