head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.06.01.13.04.37; author pin; state Exp; branches; next ; commitid L78AqWDjd9Cr16IG; desc @@ 1.1 log @devel/cargo-c: update to 0.10.23 - cargo 0.97 @ text @$NetBSD: patch-.._vendor_memchr-2.8.1_src_arch_aarch64_memchr.rs,v 1.1 2026/04/07 18:38:35 pin Exp $ Do not try to use neon on big-endian aarch64. --- ../vendor/memchr-2.8.1/src/arch/aarch64/memchr.rs.orig 2025-02-15 09:11:32.497322345 +0000 +++ ../vendor/memchr-2.8.1/src/arch/aarch64/memchr.rs @@@@ -8,7 +8,7 @@@@ available for `aarch64` targets.) macro_rules! defraw { ($ty:ident, $find:ident, $start:ident, $end:ident, $($needles:ident),+) => {{ - #[cfg(target_feature = "neon")] + #[cfg(all(target_feature = "neon", target_endian = "little"))] { use crate::arch::aarch64::neon::memchr::$ty; @@@@ -19,7 +19,7 @@@@ macro_rules! defraw { // enabled. $ty::new_unchecked($($needles),+).$find($start, $end) } - #[cfg(not(target_feature = "neon"))] + #[cfg(not(all(target_feature = "neon", target_endian = "little")))] { use crate::arch::all::memchr::$ty; @