Function fiat_crypto::p521_32::fiat_p521_addcarryx_u27

source ·
pub fn fiat_p521_addcarryx_u27(
    out1: &mut u32,
    out2: &mut fiat_p521_u1,
    arg1: fiat_p521_u1,
    arg2: u32,
    arg3: u32
)
Expand description

The function fiat_p521_addcarryx_u27 is an addition with carry.

Postconditions: out1 = (arg1 + arg2 + arg3) mod 2^27 out2 = ⌊(arg1 + arg2 + arg3) / 2^27⌋

Input Bounds: arg1: [0x0 ~> 0x1] arg2: [0x0 ~> 0x7ffffff] arg3: [0x0 ~> 0x7ffffff] Output Bounds: out1: [0x0 ~> 0x7ffffff] out2: [0x0 ~> 0x1]