@@ -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 if #[ cfg( blake3_wasm32_simd) ] {
1616 pub const MAX_SIMD_DEGREE : usize = 4 ;
@@ -32,7 +32,7 @@ cfg_if::cfg_if! {
3232 pub const MAX_SIMD_DEGREE_OR_2 : usize = 8 ;
3333 }
3434 }
35- } else if #[ cfg( blake3_neon ) ] {
35+ } else if #[ cfg( blake3_neon_ffi ) ] {
3636 pub const MAX_SIMD_DEGREE_OR_2 : usize = 4 ;
3737 } else if #[ cfg( blake3_wasm32_simd) ] {
3838 pub const MAX_SIMD_DEGREE_OR_2 : usize = 4 ;
@@ -53,7 +53,7 @@ pub enum Platform {
5353 #[ cfg( blake3_avx512_ffi) ]
5454 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
5555 AVX512 ,
56- #[ cfg( blake3_neon ) ]
56+ #[ cfg( blake3_neon_ffi ) ]
5757 NEON ,
5858 #[ cfg( blake3_wasm32_simd) ]
5959 #[ allow( non_camel_case_types) ]
@@ -88,7 +88,7 @@ impl Platform {
8888 }
8989 // We don't use dynamic feature detection for NEON. If the "neon"
9090 // feature is on, NEON is assumed to be supported.
91- #[ cfg( blake3_neon ) ]
91+ #[ cfg( blake3_neon_ffi ) ]
9292 {
9393 return Platform :: NEON ;
9494 }
@@ -111,7 +111,7 @@ impl Platform {
111111 #[ cfg( blake3_avx512_ffi) ]
112112 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
113113 Platform :: AVX512 => 16 ,
114- #[ cfg( blake3_neon ) ]
114+ #[ cfg( blake3_neon_ffi ) ]
115115 Platform :: NEON => 4 ,
116116 #[ cfg( blake3_wasm32_simd) ]
117117 Platform :: WASM32_SIMD => 4 ,
@@ -147,7 +147,7 @@ impl Platform {
147147 crate :: avx512:: compress_in_place ( cv, block, block_len, counter, flags)
148148 } ,
149149 // No NEON compress_in_place() implementation yet.
150- #[ cfg( blake3_neon ) ]
150+ #[ cfg( blake3_neon_ffi ) ]
151151 Platform :: NEON => portable:: compress_in_place ( cv, block, block_len, counter, flags) ,
152152 #[ cfg( blake3_wasm32_simd) ]
153153 Platform :: WASM32_SIMD => {
@@ -183,7 +183,7 @@ impl Platform {
183183 crate :: avx512:: compress_xof ( cv, block, block_len, counter, flags)
184184 } ,
185185 // No NEON compress_xof() implementation yet.
186- #[ cfg( blake3_neon ) ]
186+ #[ cfg( blake3_neon_ffi ) ]
187187 Platform :: NEON => portable:: compress_xof ( cv, block, block_len, counter, flags) ,
188188 #[ cfg( blake3_wasm32_simd) ]
189189 Platform :: WASM32_SIMD => {
@@ -282,7 +282,7 @@ impl Platform {
282282 )
283283 } ,
284284 // Assumed to be safe if the "neon" feature is on.
285- #[ cfg( blake3_neon ) ]
285+ #[ cfg( blake3_neon_ffi ) ]
286286 Platform :: NEON => unsafe {
287287 crate :: neon:: hash_many (
288288 inputs,
@@ -390,7 +390,7 @@ impl Platform {
390390 }
391391 }
392392
393- #[ cfg( blake3_neon ) ]
393+ #[ cfg( blake3_neon_ffi ) ]
394394 pub fn neon ( ) -> Option < Self > {
395395 // Assumed to be safe if the "neon" feature is on.
396396 Some ( Self :: NEON )
0 commit comments