decaf377::fields::fr::u32::fiat

Function fr_subborrowx_u32

Source
pub fn fr_subborrowx_u32(
    out1: &mut u32,
    out2: &mut FrU1,
    arg1: FrU1,
    arg2: u32,
    arg3: u32,
)
Expand description

The function fr_subborrowx_u32 is a subtraction with borrow.

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

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