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 e81c60e commit 1c254edCopy full SHA for 1c254ed
crates/core_simd/src/ops.rs
@@ -314,7 +314,7 @@ macro_rules! impl_unsigned_int_ops {
314
if <$scalar>::MIN != 0 &&
315
self.as_slice().iter().any(|x| *x == <$scalar>::MIN) &&
316
rhs == -1 as _ {
317
- panic!("dividing MIN by -1 is undefined");
+ panic!("attempt to divide with overflow");
318
}
319
let rhs = Self::splat(rhs);
320
unsafe { crate::intrinsics::simd_div(self, rhs) }
0 commit comments