@@ -311,15 +311,10 @@ macro_rules! impl_unsigned_int_ops {
311
311
if rhs == 0 {
312
312
panic!( "attempt to divide by zero" ) ;
313
313
}
314
- <<<<<<< HEAD
315
- if <$scalar>:: MIN != 0 && rhs == -1 as _ {
316
- panic!( "attempt to divide with overflow" ) ;
317
- =======
318
314
if <$scalar>:: MIN != 0 &&
319
315
self . as_slice( ) . iter( ) . any( |x| * x == <$scalar>:: MIN ) &&
320
316
rhs == -1 as _ {
321
- panic!( "dividing MIN by -1 is undefined" ) ;
322
- >>>>>>> 549 f751... actually check if lhs == MIN in div/rem overflow guards
317
+ panic!( "dividing MIN by -1 is undefined" ) ;
323
318
}
324
319
let rhs = Self :: splat( rhs) ;
325
320
unsafe { crate :: intrinsics:: simd_div( self , rhs) }
@@ -392,14 +387,10 @@ macro_rules! impl_unsigned_int_ops {
392
387
if rhs == 0 {
393
388
panic!( "attempt to calculate the remainder with a divisor of zero" ) ;
394
389
}
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
- >>>>>>> 549 f751... 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" ) ;
403
394
}
404
395
let rhs = Self :: splat( rhs) ;
405
396
unsafe { crate :: intrinsics:: simd_rem( self , rhs) }
0 commit comments