We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa6fb1 commit e81c60eCopy full SHA for e81c60e
crates/core_simd/src/ops.rs
@@ -390,7 +390,7 @@ macro_rules! impl_unsigned_int_ops {
390
if <$scalar>::MIN != 0 &&
391
self.as_slice().iter().any(|x| *x == <$scalar>::MIN) &&
392
rhs == -1 as _ {
393
- panic!("MIN modulo -1 is undefined");
+ panic!("attempt to calculate the remainder with overflow");
394
}
395
let rhs = Self::splat(rhs);
396
unsafe { crate::intrinsics::simd_rem(self, rhs) }
0 commit comments