Skip to content

Commit de07732

Browse files
committed
fix: add_overflow should always output carry
1 parent d05b03f commit de07732

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/neon/intrinsics.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,7 @@ impl int32x4_t {
263263
#[inline]
264264
pub fn add_overflow(a: u64, b: u64, out: &mut u64) -> bool {
265265
let (carry, did_carry) = a.overflowing_add(b);
266-
267-
if did_carry {
268-
*out = carry;
269-
};
270-
266+
*out = carry;
271267
did_carry
272268
}
273269

0 commit comments

Comments
 (0)