@@ -10,7 +10,7 @@ cfg_if::cfg_if! {
1010 pub const MAX_SIMD_DEGREE : usize = 8 ;
1111 }
1212 }
13- } else if #[ cfg( blake3_neon ) ] {
13+ } else if #[ cfg( blake3_neon_ffi ) ] {
1414 pub const MAX_SIMD_DEGREE : usize = 4 ;
1515 } else {
1616 pub const MAX_SIMD_DEGREE : usize = 1 ;
@@ -30,7 +30,7 @@ cfg_if::cfg_if! {
3030 pub const MAX_SIMD_DEGREE_OR_2 : usize = 8 ;
3131 }
3232 }
33- } else if #[ cfg( blake3_neon ) ] {
33+ } else if #[ cfg( blake3_neon_ffi ) ] {
3434 pub const MAX_SIMD_DEGREE_OR_2 : usize = 4 ;
3535 } else {
3636 pub const MAX_SIMD_DEGREE_OR_2 : usize = 2 ;
@@ -49,7 +49,7 @@ pub enum Platform {
4949 #[ cfg( blake3_avx512_ffi) ]
5050 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
5151 AVX512 ,
52- #[ cfg( blake3_neon ) ]
52+ #[ cfg( blake3_neon_ffi ) ]
5353 NEON ,
5454}
5555
@@ -81,7 +81,7 @@ impl Platform {
8181 }
8282 // We don't use dynamic feature detection for NEON. If the "neon"
8383 // feature is on, NEON is assumed to be supported.
84- #[ cfg( blake3_neon ) ]
84+ #[ cfg( blake3_neon_ffi ) ]
8585 {
8686 return Platform :: NEON ;
8787 }
@@ -100,7 +100,7 @@ impl Platform {
100100 #[ cfg( blake3_avx512_ffi) ]
101101 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
102102 Platform :: AVX512 => 16 ,
103- #[ cfg( blake3_neon ) ]
103+ #[ cfg( blake3_neon_ffi ) ]
104104 Platform :: NEON => 4 ,
105105 } ;
106106 debug_assert ! ( degree <= MAX_SIMD_DEGREE ) ;
@@ -134,7 +134,7 @@ impl Platform {
134134 crate :: avx512:: compress_in_place ( cv, block, block_len, counter, flags)
135135 } ,
136136 // No NEON compress_in_place() implementation yet.
137- #[ cfg( blake3_neon ) ]
137+ #[ cfg( blake3_neon_ffi ) ]
138138 Platform :: NEON => portable:: compress_in_place ( cv, block, block_len, counter, flags) ,
139139 }
140140 }
@@ -166,7 +166,7 @@ impl Platform {
166166 crate :: avx512:: compress_xof ( cv, block, block_len, counter, flags)
167167 } ,
168168 // No NEON compress_xof() implementation yet.
169- #[ cfg( blake3_neon ) ]
169+ #[ cfg( blake3_neon_ffi ) ]
170170 Platform :: NEON => portable:: compress_xof ( cv, block, block_len, counter, flags) ,
171171 }
172172 }
@@ -261,7 +261,7 @@ impl Platform {
261261 )
262262 } ,
263263 // Assumed to be safe if the "neon" feature is on.
264- #[ cfg( blake3_neon ) ]
264+ #[ cfg( blake3_neon_ffi ) ]
265265 Platform :: NEON => unsafe {
266266 crate :: neon:: hash_many (
267267 inputs,
@@ -355,7 +355,7 @@ impl Platform {
355355 }
356356 }
357357
358- #[ cfg( blake3_neon ) ]
358+ #[ cfg( blake3_neon_ffi ) ]
359359 pub fn neon ( ) -> Option < Self > {
360360 // Assumed to be safe if the "neon" feature is on.
361361 Some ( Self :: NEON )
0 commit comments