We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6b5d7 commit 8bea634Copy full SHA for 8bea634
crates/core_simd/src/ops.rs
@@ -358,8 +358,7 @@ macro_rules! impl_unsigned_int_ops {
358
359
#[inline]
360
fn rem(self, rhs: Self) -> Self::Output {
361
- // TODO there is probably a better way of doing this
362
- if AsRef::<[$scalar]>::as_ref(&rhs)
+ if rhs.as_slice()
363
.iter()
364
.any(|x| *x == 0)
365
{
@@ -435,7 +434,7 @@ macro_rules! impl_unsigned_int_ops {
435
434
436
fn shl(self, rhs: Self) -> Self::Output {
437
// TODO there is probably a better way of doing this
438
439
440
.copied()
441
.any(invalid_shift_rhs)
0 commit comments