pub open spec fn wrapping_add(x: i64, y: i64) -> i64Expand description
{
if x + y > <i64>::MAX {
(x + y - 0x1_0000_0000_0000_0000) as i64
} else if x + y < <i64>::MIN {
(x + y + 0x1_0000_0000_0000_0000) as i64
} else {
(x + y) as i64
}
}