Skip to content

Commit

Permalink
add aarch64 target_arch to imports in generic.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Feb 21, 2024
1 parent 468c83e commit 03c0863
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/simd/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ where

// --------------- Int (signed and unsigned)

#[cfg(any(target_arch = "x86", target_arch = "x86_64", feature = "nightly_simd"))]
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
))]
macro_rules! impl_SIMDInit_Int {
($scalar_dtype:ty, $simd_vec_dtype:ty, $simd_mask_dtype:ty, $lane_size:expr, $simd_struct:ty) => {
impl SIMDInit<$scalar_dtype, $simd_vec_dtype, $simd_mask_dtype, $lane_size>
Expand All @@ -192,7 +197,12 @@ macro_rules! impl_SIMDInit_Int {
};
}

#[cfg(any(target_arch = "x86", target_arch = "x86_64", feature = "nightly_simd"))]
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64",
feature = "nightly_simd"
))]
pub(crate) use impl_SIMDInit_Int; // Now classic paths Just Work™

// --------------- Float Return NaNs
Expand Down

0 comments on commit 03c0863

Please sign in to comment.