]> git.proxmox.com Git - rustc.git/blob - src/stdsimd/stdsimd/arch/detect/os/linux/mod.rs
New upstream version 1.27.1+dfsg1
[rustc.git] / src / stdsimd / stdsimd / arch / detect / os / linux / mod.rs
1 //! Run-time feature detection on Linux
2
3 mod auxvec;
4 mod cpuinfo;
5
6 cfg_if! {
7 if #[cfg(target_arch = "aarch64")] {
8 mod aarch64;
9 pub use self::aarch64::check_for;
10 } else if #[cfg(target_arch = "arm")] {
11 mod arm;
12 pub use self::arm::check_for;
13 } else if #[cfg(any(target_arch = "mips", target_arch = "mips64"))] {
14 mod mips;
15 pub use self::mips::check_for;
16 } else if #[cfg(target_arch = "powerpc64")] {
17 mod powerpc64;
18 pub use self::powerpc64::check_for;
19 } else {
20 use arch::detect::Feature;
21 /// Performs run-time feature detection.
22 pub fn check_for(_x: Feature) -> bool {
23 false
24 }
25 }
26 }