@@ -174,9 +174,9 @@ macro_rules! impl_op {
174
174
{ impl Shl for $scalar: ty } => {
175
175
impl_op! { @binary $scalar, Shl :: shl, ShlAssign :: shl_assign, simd_shl }
176
176
} ;
177
- { impl Shr for $scalar: ty } => {
178
- impl_op! { @binary $scalar, Shr :: shr, ShrAssign :: shr_assign, simd_shr }
179
- } ;
177
+ // { impl Shr for $scalar:ty } => {
178
+ // impl_op! { @binary $scalar, Shr::shr, ShrAssign::shr_assign, simd_shr }
179
+ // };
180
180
{ impl BitAnd for $scalar: ty } => {
181
181
impl_op! { @binary $scalar, BitAnd :: bitand, BitAndAssign :: bitand_assign, simd_and }
182
182
} ;
@@ -561,70 +561,70 @@ macro_rules! impl_unsigned_int_ops {
561
561
}
562
562
}
563
563
564
- impl_ref_ops! {
565
- impl <const LANES : usize > core:: ops:: Shr <Self > for Simd <$scalar, LANES >
566
- where
567
- LaneCount <LANES >: SupportedLaneCount ,
568
- {
569
- type Output = Self ;
570
-
571
- #[ inline]
572
- fn shr( self , rhs: Self ) -> Self :: Output {
573
- // TODO there is probably a better way of doing this
574
- if rhs. as_array( )
575
- . iter( )
576
- . copied( )
577
- . any( invalid_shift_rhs)
578
- {
579
- panic!( "attempt to shift with overflow" ) ;
580
- }
581
- unsafe { intrinsics:: simd_shr( self , rhs) }
582
- }
583
- }
584
- }
585
-
586
- impl_ref_ops! {
587
- impl <const LANES : usize > core:: ops:: Shr <$scalar> for Simd <$scalar, LANES >
588
- where
589
- LaneCount <LANES >: SupportedLaneCount ,
590
- {
591
- type Output = Self ;
592
-
593
- #[ inline]
594
- fn shr( self , rhs: $scalar) -> Self :: Output {
595
- if invalid_shift_rhs( rhs) {
596
- panic!( "attempt to shift with overflow" ) ;
597
- }
598
- let rhs = Self :: splat( rhs) ;
599
- unsafe { intrinsics:: simd_shr( self , rhs) }
600
- }
601
- }
602
- }
603
-
604
-
605
- impl_ref_ops! {
606
- impl <const LANES : usize > core:: ops:: ShrAssign <Self > for Simd <$scalar, LANES >
607
- where
608
- LaneCount <LANES >: SupportedLaneCount ,
609
- {
610
- #[ inline]
611
- fn shr_assign( & mut self , rhs: Self ) {
612
- * self = * self >> rhs;
613
- }
614
- }
615
- }
616
-
617
- impl_ref_ops! {
618
- impl <const LANES : usize > core:: ops:: ShrAssign <$scalar> for Simd <$scalar, LANES >
619
- where
620
- LaneCount <LANES >: SupportedLaneCount ,
621
- {
622
- #[ inline]
623
- fn shr_assign( & mut self , rhs: $scalar) {
624
- * self = * self >> rhs;
625
- }
626
- }
627
- }
564
+ // impl_ref_ops! {
565
+ // impl<const LANES: usize> core::ops::Shr<Self> for Simd<$scalar, LANES>
566
+ // where
567
+ // LaneCount<LANES>: SupportedLaneCount,
568
+ // {
569
+ // type Output = Self;
570
+
571
+ // #[inline]
572
+ // fn shr(self, rhs: Self) -> Self::Output {
573
+ // // TODO there is probably a better way of doing this
574
+ // if rhs.as_array()
575
+ // .iter()
576
+ // .copied()
577
+ // .any(invalid_shift_rhs)
578
+ // {
579
+ // panic!("attempt to shift with overflow");
580
+ // }
581
+ // unsafe { intrinsics::simd_shr(self, rhs) }
582
+ // }
583
+ // }
584
+ // }
585
+
586
+ // impl_ref_ops! {
587
+ // impl<const LANES: usize> core::ops::Shr<$scalar> for Simd<$scalar, LANES>
588
+ // where
589
+ // LaneCount<LANES>: SupportedLaneCount,
590
+ // {
591
+ // type Output = Self;
592
+
593
+ // #[inline]
594
+ // fn shr(self, rhs: $scalar) -> Self::Output {
595
+ // if invalid_shift_rhs(rhs) {
596
+ // panic!("attempt to shift with overflow");
597
+ // }
598
+ // let rhs = Self::splat(rhs);
599
+ // unsafe { intrinsics::simd_shr(self, rhs) }
600
+ // }
601
+ // }
602
+ // }
603
+
604
+
605
+ // impl_ref_ops! {
606
+ // impl<const LANES: usize> core::ops::ShrAssign<Self> for Simd<$scalar, LANES>
607
+ // where
608
+ // LaneCount<LANES>: SupportedLaneCount,
609
+ // {
610
+ // #[inline]
611
+ // fn shr_assign(&mut self, rhs: Self) {
612
+ // *self = *self >> rhs;
613
+ // }
614
+ // }
615
+ // }
616
+
617
+ // impl_ref_ops! {
618
+ // impl<const LANES: usize> core::ops::ShrAssign<$scalar> for Simd<$scalar, LANES>
619
+ // where
620
+ // LaneCount<LANES>: SupportedLaneCount,
621
+ // {
622
+ // #[inline]
623
+ // fn shr_assign(&mut self, rhs: $scalar) {
624
+ // *self = *self >> rhs;
625
+ // }
626
+ // }
627
+ // }
628
628
) *
629
629
} ;
630
630
}
0 commit comments