wrapAdd (Function)

Signature: wrapAdd(a: t0, b: t0) -> t0

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

Parameters

  • a (t0): The first addend
  • b (t0): The second addend

Returns: t0

Example

let h = wrapAdd(9223372036854775807, 1)  // -9223372036854775808
h = wrapAdd (9223372036854775807, 1)  // -9223372036854775808