Skip to content

Commit 1aa6fb1

Browse files
committed
cleanup merge
1 parent cf269b9 commit 1aa6fb1

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

crates/core_simd/src/ops.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,10 @@ macro_rules! impl_unsigned_int_ops {
311311
if rhs == 0 {
312312
panic!("attempt to divide by zero");
313313
}
314-
<<<<<<< HEAD
315-
if <$scalar>::MIN != 0 && rhs == -1 as _ {
316-
panic!("attempt to divide with overflow");
317-
=======
318314
if <$scalar>::MIN != 0 &&
319315
self.as_slice().iter().any(|x| *x == <$scalar>::MIN) &&
320316
rhs == -1 as _ {
321-
panic!("dividing MIN by -1 is undefined");
322-
>>>>>>> 549f751... actually check if lhs == MIN in div/rem overflow guards
317+
panic!("dividing MIN by -1 is undefined");
323318
}
324319
let rhs = Self::splat(rhs);
325320
unsafe { crate::intrinsics::simd_div(self, rhs) }
@@ -392,14 +387,10 @@ macro_rules! impl_unsigned_int_ops {
392387
if rhs == 0 {
393388
panic!("attempt to calculate the remainder with a divisor of zero");
394389
}
395-
<<<<<<< HEAD
396-
if <$scalar>::MIN != 0 && rhs == -1 as _ {
397-
panic!("attempt to calculate the remainder with overflow");
398-
=======
399-
if <$scalar>::MIN != 0 && self.as_slice().iter().any(|x| *x == <$scalar>::MIN) && rhs == -1 as _ {
400-
panic!("MIN modulo -1 is undefined");
401-
402-
>>>>>>> 549f751... actually check if lhs == MIN in div/rem overflow guards
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");
403394
}
404395
let rhs = Self::splat(rhs);
405396
unsafe { crate::intrinsics::simd_rem(self, rhs) }

0 commit comments

Comments
 (0)