Skip to main content

std_detect/detect/arch/
mips64.rs

1//! Run-time feature detection on MIPS64.
2
3#[doc = r" Check for the presence of a CPU feature at runtime."]
#[doc = r""]
#[doc =
r" When the feature is known to be enabled at compile time (e.g. via `-Ctarget-feature`)"]
#[doc = r" the macro expands to `true`."]
#[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
#[macro_export]
macro_rules! is_mips64_feature_detected {
    ("msa") =>
    {
        compile_error!
        (concat!
        (r#"This macro cannot be used on the current target.
                            You can prevent it from being used in other architectures by
                            guarding it behind a cfg("#,
        stringify! (target_arch = "mips64"), ")."))
    }; ($t : tt,) => { crate :: is_mips64_feature_detected ! ($t); };
    ($t : tt) =>
    {
        compile_error!
        (concat!
        (concat! ("unknown ", stringify! (mips64)), concat!
        (" target feature: ", $t)))
    };
}
#[deny(unexpected_cfgs)]
#[deny(unfulfilled_lint_expectations)]
const _: () = { false; ; };features! {
4    @TARGET: mips64;
5    @CFG: target_arch = "mips64";
6    @MACRO_NAME: is_mips64_feature_detected;
7    @MACRO_ATTRS:
8    /// Check for the presence of a CPU feature at runtime.
9    ///
10    /// When the feature is known to be enabled at compile time (e.g. via `-Ctarget-feature`)
11    /// the macro expands to `true`.
12    #[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
13    @FEATURE: #[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")] msa: "msa";
14    /// MIPS SIMD Architecture (MSA)
15}