wrapMul (Function)

Signature: wrapMul(a: int, b: int) -> int

Description: Total two's-complement multiplication: overflow wraps and performs no Arith operation.

Parameters

  • a (int): The first factor
  • b (int): The second factor

Returns: int

Example

let h = wrapMul(4294967296, 4294967296)  // 0
h = wrapMul (4294967296, 4294967296)  // 0