Skip to content

Commit

Permalink
wrapping add
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Apr 17, 2024
1 parent b88e870 commit 7cbfd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/int/big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl HInt for u128 {
+ (sum2 & u128::from(WORD_FULL_MASK))
+ ((sum3 << 32) & u128::from(WORD_HI_MASK));

let lo = r0 + (r1 << 64);
let lo = r0.wrapping_add(r1 << 64);
let hi = (r1 >> 64)
+ (sum1 >> 96)
+ (sum2 >> 64)
Expand Down

0 comments on commit 7cbfd21

Please sign in to comment.