Skip to content

Commit 63a693a

Browse files
committed
Auto merge of #475 - Amanieu:neon_be, r=Amanieu
Disable the use of NEON intrinsics on big-endian targets These are implemented incorrectly in `core::arch`, and should therefore be avoided until they are fixed.
2 parents 3d2d163 + f770c59 commit 63a693a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/raw/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ cfg_if! {
2424
))] {
2525
mod sse2;
2626
use sse2 as imp;
27-
} else if #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] {
27+
} else if #[cfg(all(
28+
target_arch = "aarch64",
29+
target_feature = "neon",
30+
// NEON intrinsics are currently broken on big-endian targets.
31+
target_endian = "little",
32+
))] {
2833
mod neon;
2934
use neon as imp;
3035
} else {

0 commit comments

Comments
 (0)