@@ -214,7 +214,10 @@ where
214214 assert_eq ! ( src. alpha, self . alpha) ;
215215 assert_eq ! ( src. p, self . p) ;
216216 assert_eq ! ( src. m. len( ) , self . m. len( ) ) ;
217- #[ cfg( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ]
217+ #[ cfg( all(
218+ feature = "packed_simd" ,
219+ any( target_arch = "x86" , target_arch = "x86_64" )
220+ ) ) ]
218221 {
219222 assert_eq ! ( self . m. len( ) % u8s:: lanes( ) , 0 ) ; // TODO: high error rate can trigger this
220223 assert_eq ! ( u8s:: lanes( ) , f32s:: lanes( ) * 4 ) ;
@@ -246,7 +249,10 @@ where
246249 // https://github.com/AdamNiederer/faster/issues/37
247250 // (src.m.simd_iter(faster::u8s(0)),self.m.simd_iter_mut(faster::u8s(0))).zip()
248251 }
249- #[ cfg( not( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ) ]
252+ #[ cfg( not( all(
253+ feature = "packed_simd" ,
254+ any( target_arch = "x86" , target_arch = "x86_64" )
255+ ) ) ) ]
250256 {
251257 let mut zero = 0 ;
252258 let mut sum = 0.0 ;
@@ -267,7 +273,10 @@ where
267273 assert_eq ! ( src. alpha, self . alpha) ;
268274 assert_eq ! ( src. p, self . p) ;
269275 assert_eq ! ( src. m. len( ) , self . m. len( ) ) ;
270- #[ cfg( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ]
276+ #[ cfg( all(
277+ feature = "packed_simd" ,
278+ any( target_arch = "x86" , target_arch = "x86_64" )
279+ ) ) ]
271280 {
272281 assert_eq ! ( self . m. len( ) % u8s:: lanes( ) , 0 ) ;
273282 assert_eq ! ( u8s:: lanes( ) , f32s:: lanes( ) * 4 ) ;
@@ -297,7 +306,10 @@ where
297306 self . zero = usize:: try_from ( zero. wrapping_sum ( ) ) . unwrap ( ) ;
298307 self . sum = f64:: from ( sum. sum ( ) ) ;
299308 }
300- #[ cfg( not( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ) ]
309+ #[ cfg( not( all(
310+ feature = "packed_simd" ,
311+ any( target_arch = "x86" , target_arch = "x86_64" )
312+ ) ) ) ]
301313 {
302314 let mut zero = 0 ;
303315 let mut sum = 0.0 ;
@@ -457,7 +469,10 @@ impl<V: ?Sized> IntersectPlusUnionIsPlus for HyperLogLog<V> {
457469 const VAL : bool = true ;
458470}
459471
460- #[ cfg( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ]
472+ #[ cfg( all(
473+ feature = "packed_simd" ,
474+ any( target_arch = "x86" , target_arch = "x86_64" )
475+ ) ) ]
461476mod simd {
462477 pub use packed_simd:: { self , Cast , FromBits , IntoBits } ;
463478 use std:: marker:: PhantomData ;
@@ -560,7 +575,10 @@ mod simd {
560575 }
561576 }
562577}
563- #[ cfg( all( feature = "packed_simd" , any( target_arch = "x86" , target_arch = "x86_64" ) ) ) ]
578+ #[ cfg( all(
579+ feature = "packed_simd" ,
580+ any( target_arch = "x86" , target_arch = "x86_64" )
581+ ) ) ]
564582use simd:: { f32s, u32s, u8s, u8s_sad_out, u8sq, Cast , FromBits , IntoBits , Sad } ;
565583
566584#[ cfg( test) ]
0 commit comments