File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ macro_rules! impl_vector_rotates {
16
16
const LANE_WIDTH : $elem_ty = :: mem:: size_of:: <$elem_ty>( ) as $elem_ty * 8 ;
17
17
// Protect against undefined behavior for over-long bit shifts
18
18
let n = n % LANE_WIDTH ;
19
- ( self << n) | ( self >> ( ( LANE_WIDTH - n) % LANE_WIDTH ) )
19
+ ( self << n) | ( self >> ( LANE_WIDTH - n) )
20
20
}
21
21
22
22
/// Shifts the bits of each lane to the right by the specified amount in
@@ -31,7 +31,7 @@ macro_rules! impl_vector_rotates {
31
31
const LANE_WIDTH : $elem_ty = :: mem:: size_of:: <$elem_ty>( ) as $elem_ty * 8 ;
32
32
// Protect against undefined behavior for over-long bit shifts
33
33
let n = n % LANE_WIDTH ;
34
- ( self >> n) | ( self << ( ( LANE_WIDTH - n) % LANE_WIDTH ) )
34
+ ( self >> n) | ( self << ( LANE_WIDTH - n) )
35
35
}
36
36
}
37
37
} ;
You can’t perform that action at this time.
0 commit comments