wrapSub (Function)

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

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

Parameters

  • a (t0): The minuend
  • b (t0): The subtrahend

Returns: t0

Example

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