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