]> git.proxmox.com Git - rustc.git/blob - src/stdsimd/stdsimd/arch/detect/arch/mips64.rs
New upstream version 1.29.0+dfsg1
[rustc.git] / src / stdsimd / stdsimd / arch / detect / arch / mips64.rs
1 //! Run-time feature detection on MIPS64.
2
3 #[macro_export]
4 #[unstable(feature = "stdsimd", issue = "27731")]
5 #[allow_internal_unstable]
6 macro_rules! is_mips64_feature_detected {
7 ("msa") => {
8 cfg!(target_feature = "msa") ||
9 $crate::arch::detect::check_for($crate::arch::detect::Feature::msa)
10 };
11 ($t:tt) => { compile_error!(concat!("unknown mips64 target feature: ", $t)) };
12 }
13
14 /// MIPS64 CPU Feature enum. Each variant denotes a position in a bitset
15 /// for a particular feature.
16 ///
17 /// PLEASE: do not use this, it is an implementation detail subject to change.
18 #[doc(hidden)]
19 #[allow(non_camel_case_types)]
20 #[repr(u8)]
21 #[unstable(feature = "stdsimd_internal", issue = "0")]
22 pub enum Feature {
23 /// MIPS SIMD Architecture (MSA)
24 msa,
25 }