99//! Math helper functions
1010
1111#[ cfg( feature = "simd_support" ) ]
12- use core:: simd:: prelude :: * ;
12+ use core:: simd:: SimdElement ;
1313#[ cfg( feature = "simd_support" ) ]
14- use core:: simd:: { LaneCount , SimdElement , SupportedLaneCount } ;
14+ use core:: simd:: prelude :: * ;
1515
1616pub ( crate ) trait WideningMultiply < RHS = Self > {
1717 type Output ;
@@ -337,10 +337,7 @@ scalar_float_impl!(f64, u64);
337337#[ cfg( feature = "simd_support" ) ]
338338macro_rules! simd_impl {
339339 ( $fty: ident, $uty: ident) => {
340- impl <const LANES : usize > FloatSIMDUtils for Simd <$fty, LANES >
341- where
342- LaneCount <LANES >: SupportedLaneCount ,
343- {
340+ impl <const LANES : usize > FloatSIMDUtils for Simd <$fty, LANES > {
344341 type Mask = Mask <<$fty as SimdElement >:: Mask , LANES >;
345342 type UInt = Simd <$uty, LANES >;
346343
@@ -373,7 +370,7 @@ macro_rules! simd_impl {
373370 // value representable by $fty. This works even when the
374371 // current value is infinity.
375372 debug_assert!( mask. any( ) , "At least one lane must be set" ) ;
376- Self :: from_bits( self . to_bits( ) + mask. to_int ( ) . cast( ) )
373+ Self :: from_bits( self . to_bits( ) + mask. to_simd ( ) . cast( ) )
377374 }
378375
379376 #[ inline]
@@ -383,10 +380,7 @@ macro_rules! simd_impl {
383380 }
384381
385382 #[ cfg( test) ]
386- impl <const LANES : usize > FloatSIMDScalarUtils for Simd <$fty, LANES >
387- where
388- LaneCount <LANES >: SupportedLaneCount ,
389- {
383+ impl <const LANES : usize > FloatSIMDScalarUtils for Simd <$fty, LANES > {
390384 type Scalar = $fty;
391385
392386 #[ inline]
0 commit comments