@@ -4455,7 +4455,7 @@ pub unsafe fn vnegq_s64(a: int64x2_t) -> int64x2_t {
44554455#[target_feature(enable = "neon")]
44564456#[cfg_attr(test, assert_instr(neg))]
44574457pub unsafe fn vnegd_s64(a: i64) -> i64 {
4458- -a
4458+ a.wrapping_neg()
44594459}
44604460
44614461/// Negate
@@ -7512,31 +7512,31 @@ pub unsafe fn vsubq_f64(a: float64x2_t, b: float64x2_t) -> float64x2_t {
75127512#[target_feature(enable = "neon")]
75137513#[cfg_attr(test, assert_instr(nop))]
75147514pub unsafe fn vsubd_s64(a: i64, b: i64) -> i64 {
7515- a - b
7515+ a.wrapping_sub(b)
75167516}
75177517
75187518/// Subtract
75197519#[inline]
75207520#[target_feature(enable = "neon")]
75217521#[cfg_attr(test, assert_instr(nop))]
75227522pub unsafe fn vsubd_u64(a: u64, b: u64) -> u64 {
7523- a - b
7523+ a.wrapping_sub(b)
75247524}
75257525
75267526/// Add
75277527#[inline]
75287528#[target_feature(enable = "neon")]
75297529#[cfg_attr(test, assert_instr(nop))]
75307530pub unsafe fn vaddd_s64(a: i64, b: i64) -> i64 {
7531- a + b
7531+ a.wrapping_add(b)
75327532}
75337533
75347534/// Add
75357535#[inline]
75367536#[target_feature(enable = "neon")]
75377537#[cfg_attr(test, assert_instr(nop))]
75387538pub unsafe fn vaddd_u64(a: u64, b: u64) -> u64 {
7539- a + b
7539+ a.wrapping_add(b)
75407540}
75417541
75427542/// Floating-point add across vector
@@ -11536,7 +11536,7 @@ pub unsafe fn vrshrn_high_n_u64<const N: i32>(a: uint32x2_t, b: uint64x2_t) -> u
1153611536pub unsafe fn vrsrad_n_s64<const N: i32>(a: i64, b: i64) -> i64 {
1153711537 static_assert!(N : i32 where N >= 1 && N <= 64);
1153811538 let b: i64 = vrshrd_n_s64::<N>(b);
11539- a + b
11539+ a.wrapping_add(b)
1154011540}
1154111541
1154211542/// Ungisned rounding shift right and accumulate.
@@ -11547,7 +11547,7 @@ pub unsafe fn vrsrad_n_s64<const N: i32>(a: i64, b: i64) -> i64 {
1154711547pub unsafe fn vrsrad_n_u64<const N: i32>(a: u64, b: u64) -> u64 {
1154811548 static_assert!(N : i32 where N >= 1 && N <= 64);
1154911549 let b: u64 = vrshrd_n_u64::<N>(b);
11550- a + b
11550+ a.wrapping_add(b)
1155111551}
1155211552
1155311553/// Rounding subtract returning high narrow
0 commit comments