wrapping_add

Function wrapping_add 

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