Skip to content

Commit

Permalink
use scalar implementation for 64 bit integers on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Feb 28, 2024
1 parent 15ac377 commit ecc035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Int>::argminmax(self) }
}
Expand Down

0 comments on commit ecc035f

Please sign in to comment.