Only import aarch64 intrinsics on aarch64 · rust-lang/rust@209476e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 209476e

Only import aarch64 intrinsics on aarch64

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
1 1 // Most of these tests are copied from https://github.com/japaric/stdsimd/blob/0f4413d01c4f0c3ffbc5a69e9a37fbc7235b31a9/coresimd/arm/neon.rs
2 2
3 3 #![feature(portable_simd)]
4 +
5 +#[cfg(target_arch = "aarch64")]
4 6 use std::arch::aarch64::*;
5 7 use std::mem::transmute;
6 8 use std::simd::*;