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