From 209476e33acbeb14213c2edbb6e877dd251d4943 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Sat, 4 Nov 2023 19:47:56 +0000 Subject: [PATCH] Only import aarch64 intrinsics on aarch64 --- example/neon.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/neon.rs b/example/neon.rs index 41b51890560..bad26947967 100644 --- a/example/neon.rs +++ b/example/neon.rs @@ -1,6 +1,8 @@ // Most of these tests are copied from https://github.com/japaric/stdsimd/blob/0f4413d01c4f0c3ffbc5a69e9a37fbc7235b31a9/coresimd/arm/neon.rs #![feature(portable_simd)] + +#[cfg(target_arch = "aarch64")] use std::arch::aarch64::*; use std::mem::transmute; use std::simd::*;