satSub (Function)
Signature: satSub(a: t0, b: t0) -> t0
Description: Total saturating subtraction: overflow clamps to the int range and performs no Arith operation.
Parameters
- a (
t0): The minuend - b (
t0): The subtrahend
Returns: t0
Example
let s = satSub(-9223372036854775808, 1) // -9223372036854775808
s = satSub (-9223372036854775808, 1) // -9223372036854775808