is_loongarch_feature_detected

Macro is_loongarch_feature_detected 

1.89.0 · Source
macro_rules! is_loongarch_feature_detected {
    ("32s") => { ... };
    ("f") => { ... };
    ("d") => { ... };
    ("frecipe") => { ... };
    ("div32") => { ... };
    ("lsx") => { ... };
    ("lasx") => { ... };
    ("lam-bh") => { ... };
    ("lamcas") => { ... };
    ("ld-seq-sa") => { ... };
    ("scq") => { ... };
    ("lbt") => { ... };
    ("lvz") => { ... };
    ("ual") => { ... };
    ($t:tt,) => { ... };
    ($t:tt) => { ... };
}
Expand description

Check for the presence of a CPU feature at runtime.

When the feature is known to be enabled at compile time (e.g. via -Ctarget-feature) the macro expands to true.

Supported arguments are:

  • "32s"
  • "f"
  • "d"
  • "frecipe"
  • "div32"
  • "lsx"
  • "lasx"
  • "lam-bh"
  • "lamcas"
  • "ld-seq-sa"
  • "scq"
  • "lbt"
  • "lvz"
  • "ual"