@@ -200,7 +200,7 @@ macro_rules! by_unit_check_simd {
200
200
}
201
201
202
202
cfg_if ! {
203
- if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) ) ) ) ] {
203
+ if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) , all ( target_endian = "little" , target_feature = "neon" ) ) ) ) ] {
204
204
use simd_funcs:: * ;
205
205
use stdsimd:: simd:: u8x16;
206
206
use stdsimd:: simd:: u16x8;
@@ -331,7 +331,7 @@ fn utf16_valid_up_to_alu(buffer: &[u16]) -> (usize, bool) {
331
331
}
332
332
333
333
cfg_if ! {
334
- if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) ) ) ) ] {
334
+ if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) , all ( target_endian = "little" , target_feature = "neon" ) ) ) ) ] {
335
335
#[ inline( always) ]
336
336
fn is_str_latin1_impl( buffer: & str ) -> Option <usize > {
337
337
let mut offset = 0usize ;
@@ -420,7 +420,7 @@ fn is_utf8_latin1_impl(buffer: &[u8]) -> Option<usize> {
420
420
}
421
421
422
422
cfg_if ! {
423
- if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) ) ) ) ] {
423
+ if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) , all ( target_endian = "little" , target_feature = "neon" ) ) ) ) ] {
424
424
#[ inline( always) ]
425
425
fn is_utf16_bidi_impl( buffer: & [ u16 ] ) -> bool {
426
426
let mut offset = 0usize ;
@@ -470,7 +470,7 @@ cfg_if!{
470
470
}
471
471
472
472
cfg_if ! {
473
- if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) ) ) ) ] {
473
+ if #[ cfg( all( feature = "simd-accel" , any( target_feature = "sse2" , all( target_endian = "little" , target_arch = "aarch64" ) , all ( target_endian = "little" , target_feature = "neon" ) ) ) ) ] {
474
474
#[ inline( always) ]
475
475
fn check_utf16_for_latin1_and_bidi_impl( buffer: & [ u16 ] ) -> Latin1Bidi {
476
476
let mut offset = 0usize ;
0 commit comments