wrapping_sub

Function wrapping_sub 

Source
pub open spec fn wrapping_sub(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
    }
}