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