Function vstd::atomic::wrapping_add_u64

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