Skip to content

Commit

Permalink
Disable the use of NEON intrinsics on big-endian targets
Browse files Browse the repository at this point in the history
These are implemented incorrectly in `core::arch`, and should therefore
be avoided until they are fixed.
  • Loading branch information
Amanieu committed Oct 18, 2023
1 parent 844b337 commit f770c59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ cfg_if! {
))] {
mod sse2;
use sse2 as imp;
} else if #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] {
} else if #[cfg(all(
target_arch = "aarch64",
target_feature = "neon",
// NEON intrinsics are currently broken on big-endian targets.
target_endian = "little",
))] {
mod neon;
use neon as imp;
} else {
Expand Down

0 comments on commit f770c59

Please sign in to comment.