satMul (Function)
Signature: satMul(a: int, b: int) -> int
Description: Total saturating multiplication: overflow clamps to the int range and performs no Arith operation.
Parameters
- a (int): The first factor
- b (int): The second factor
Returns: int
Example
let s = satMul(4294967296, -4294967296) // -9223372036854775808
s = satMul (4294967296, -4294967296) // -9223372036854775808