@@ -214,7 +214,10 @@ where
214
214
assert_eq ! ( src. alpha, self . alpha) ;
215
215
assert_eq ! ( src. p, self . p) ;
216
216
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
+ ) ) ]
218
221
{
219
222
assert_eq ! ( self . m. len( ) % u8s:: lanes( ) , 0 ) ; // TODO: high error rate can trigger this
220
223
assert_eq ! ( u8s:: lanes( ) , f32s:: lanes( ) * 4 ) ;
@@ -246,7 +249,10 @@ where
246
249
// https://github.com/AdamNiederer/faster/issues/37
247
250
// (src.m.simd_iter(faster::u8s(0)),self.m.simd_iter_mut(faster::u8s(0))).zip()
248
251
}
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
+ ) ) ) ]
250
256
{
251
257
let mut zero = 0 ;
252
258
let mut sum = 0.0 ;
@@ -267,7 +273,10 @@ where
267
273
assert_eq ! ( src. alpha, self . alpha) ;
268
274
assert_eq ! ( src. p, self . p) ;
269
275
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
+ ) ) ]
271
280
{
272
281
assert_eq ! ( self . m. len( ) % u8s:: lanes( ) , 0 ) ;
273
282
assert_eq ! ( u8s:: lanes( ) , f32s:: lanes( ) * 4 ) ;
@@ -297,7 +306,10 @@ where
297
306
self . zero = usize:: try_from ( zero. wrapping_sum ( ) ) . unwrap ( ) ;
298
307
self . sum = f64:: from ( sum. sum ( ) ) ;
299
308
}
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
+ ) ) ) ]
301
313
{
302
314
let mut zero = 0 ;
303
315
let mut sum = 0.0 ;
@@ -457,7 +469,10 @@ impl<V: ?Sized> IntersectPlusUnionIsPlus for HyperLogLog<V> {
457
469
const VAL : bool = true ;
458
470
}
459
471
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
+ ) ) ]
461
476
mod simd {
462
477
pub use packed_simd:: { self , Cast , FromBits , IntoBits } ;
463
478
use std:: marker:: PhantomData ;
@@ -560,7 +575,10 @@ mod simd {
560
575
}
561
576
}
562
577
}
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
+ ) ) ]
564
582
use simd:: { f32s, u32s, u8s, u8s_sad_out, u8sq, Cast , FromBits , IntoBits , Sad } ;
565
583
566
584
#[ cfg( test) ]
0 commit comments