wrapping_add

Function wrapping_add 

Source
pub open spec fn wrapping_add(x: i64, y: i64) -> i64
Expand description
{
    if x + y > <i64>::MAX {
        (x + y - 0x1_0000_0000_0000_0000) as i64
    } else if x + y < <i64>::MIN {
        (x + y + 0x1_0000_0000_0000_0000) as i64
    } else {
        (x + y) as i64
    }
}