Function vstd::atomic::wrapping_sub_isize

source ·
pub open spec fn wrapping_sub_isize(a: int, b: int) -> int
Expand description
{
    if a - b > (<isize>::MAX as int) {
        a - b - ((<isize>::MAX as int) - (<isize>::MIN as int) + 1)
    } else if a - b < (<isize>::MIN as int) {
        a - b + ((<isize>::MAX as int) - (<isize>::MIN as int) + 1)
    } else {
        a - b
    }
}