Skip to main content

carrying_add

Function carrying_add 

Source
pub(crate) const fn carrying_add(
    lhs: Word,
    rhs: Word,
    carry: Word,
) -> (Word, Word)
Expand description

Computes lhs + rhs + carry, returning the result along with the new carry (0, 1, or 2).