@@ -25,9 +25,9 @@ use crate::{crc32, crc64};
2525#[ inline]
2626#[ cfg_attr(
2727 any( target_arch = "x86" , target_arch = "x86_64" ) ,
28- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
28+ target_feature( enable = "sse3 ,sse4.1,pclmulqdq" )
2929) ]
30- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
30+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
3131pub unsafe fn update < T : ArchOps , W : EnhancedCrcWidth > (
3232 state : W :: Value ,
3333 bytes : & [ u8 ] ,
7878#[ inline]
7979#[ cfg_attr(
8080 any( target_arch = "x86" , target_arch = "x86_64" ) ,
81- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
81+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
8282) ]
83- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
83+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
8484unsafe fn process_by_strategy < T : ArchOps , W : EnhancedCrcWidth > (
8585 strategy : DataChunkProcessor ,
8686 data : & [ u8 ] ,
@@ -114,9 +114,9 @@ where
114114#[ inline]
115115#[ cfg_attr(
116116 any( target_arch = "x86" , target_arch = "x86_64" ) ,
117- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
117+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
118118) ]
119- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
119+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
120120unsafe fn process_large_aligned < T : ArchOps , W : EnhancedCrcWidth > (
121121 bytes : & [ u8 ] ,
122122 state : & mut CrcState < T :: Vector > ,
@@ -167,9 +167,9 @@ where
167167#[ inline]
168168#[ cfg_attr(
169169 any( target_arch = "x86" , target_arch = "x86_64" ) ,
170- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
170+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
171171) ]
172- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
172+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
173173unsafe fn process_simd_chunks < T : ArchOps , W : EnhancedCrcWidth > (
174174 state : & mut CrcState < T :: Vector > ,
175175 first : & [ T :: Vector ; 8 ] ,
@@ -247,9 +247,9 @@ unsafe fn process_simd_chunks<T: ArchOps, W: EnhancedCrcWidth>(
247247#[ inline]
248248#[ cfg_attr(
249249 any( target_arch = "x86" , target_arch = "x86_64" ) ,
250- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
250+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
251251) ]
252- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
252+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
253253unsafe fn process_exactly_16 < T : ArchOps , W : EnhancedCrcWidth > (
254254 data : & [ u8 ] ,
255255 state : & mut CrcState < T :: Vector > ,
@@ -273,9 +273,9 @@ where
273273#[ inline]
274274#[ cfg_attr(
275275 any( target_arch = "x86" , target_arch = "x86_64" ) ,
276- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
276+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
277277) ]
278- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
278+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
279279unsafe fn process_16_byte_block < T : ArchOps > (
280280 data_ptr : * const u8 ,
281281 initial_crc : T :: Vector ,
@@ -296,9 +296,9 @@ where
296296#[ inline]
297297#[ cfg_attr(
298298 any( target_arch = "x86" , target_arch = "x86_64" ) ,
299- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
299+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
300300) ]
301- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
301+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
302302pub ( crate ) unsafe fn reflect_bytes < T : ArchOps > (
303303 reflector : & Reflector < T :: Vector > ,
304304 data : T :: Vector ,
@@ -317,9 +317,9 @@ where
317317#[ inline]
318318#[ cfg_attr(
319319 any( target_arch = "x86" , target_arch = "x86_64" ) ,
320- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
320+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
321321) ]
322- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
322+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
323323unsafe fn fold_and_xor < T : ArchOps , W : EnhancedCrcWidth > (
324324 current : T :: Vector ,
325325 coefficient : T :: Vector ,
@@ -347,9 +347,9 @@ where
347347#[ inline]
348348#[ cfg_attr(
349349 any( target_arch = "x86" , target_arch = "x86_64" ) ,
350- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
350+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
351351) ]
352- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
352+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
353353unsafe fn process_17_to_31 < T : ArchOps , W : EnhancedCrcWidth > (
354354 data : & [ u8 ] ,
355355 state : & mut CrcState < T :: Vector > ,
@@ -386,9 +386,9 @@ where
386386#[ inline]
387387#[ cfg_attr(
388388 any( target_arch = "x86" , target_arch = "x86_64" ) ,
389- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
389+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
390390) ]
391- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
391+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
392392unsafe fn process_32_to_255 < T : ArchOps , W : EnhancedCrcWidth > (
393393 data : & [ u8 ] ,
394394 state : & mut CrcState < T :: Vector > ,
@@ -448,9 +448,9 @@ where
448448#[ inline]
449449#[ cfg_attr(
450450 any( target_arch = "x86" , target_arch = "x86_64" ) ,
451- target_feature( enable = "sse2 ,sse4.1,pclmulqdq" )
451+ target_feature( enable = "ssse3 ,sse4.1,pclmulqdq" )
452452) ]
453- #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "neon, aes" ) ) ]
453+ #[ cfg_attr( target_arch = "aarch64" , target_feature( enable = "aes" ) ) ]
454454unsafe fn get_last_two_xmms < T : ArchOps , W : EnhancedCrcWidth > (
455455 data : & [ u8 ] ,
456456 remaining_len : usize ,
0 commit comments