diff --git a/src/lib.rs b/src/lib.rs index 03f7705..6641609 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -306,7 +306,7 @@ macro_rules! impl_argminmax_int { } #[cfg(target_arch = "aarch64")] { - if std::arch::is_aarch64_feature_detected!("neon") { + if std::arch::is_aarch64_feature_detected!("neon") & (<$int_type>::NB_BITS < 64) { // Scalar is faster for 64-bit numbers return unsafe { NEON::::argminmax(self) } }