You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2024-04-20 @prestwich wrote in 46fc569 “Merge pull request #366 from DaniPopes/perfington1”:
Replace with u64::carrying_add once stable.
/// an arithmetic overflow would occur. If an overflow would have occurred/// then the wrapped value is returned.#[inline]#[must_use]pubconstfn overflowing_add(mutself,rhs:Self) -> (Self,bool){// TODO: Replace with `u64::carrying_add` once stable.#[inline]constfn u64_carrying_add(lhs:u64,rhs:u64,carry:bool) -> (u64,bool){let(a, b) = lhs.overflowing_add(rhs);let(c, d) = a.overflowing_add(carry asu64);(c, b || d)
On 2024-04-20 @prestwich wrote in
46fc569
“Merge pull request #366 from DaniPopes/perfington1”:Replace with
u64::carrying_add
once stable.From
src/add.rs:59
The text was updated successfully, but these errors were encountered: