Function vstd::atomic::wrapping_add_isize
source · pub open spec fn wrapping_add_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
}
}