fixedUIntBigNot
fixedUIntBigNot(
value,bitWidth):bigint
Defined in: packages/math-numbers/src/fixed-int-big/fixed-uint-big-not.ts:17
Bitwise complement of a bitWidth-bit unsigned integer.
The only bitwise operation that is not shared between the two sign
conventions. &, | and ^ are closed over both ranges and are plain
bigint operators, and a signed complement is ~value — already in range,
since two’s complement makes it -value - 1. An unsigned one is not:
~value is negative for every input, so the pattern has to be truncated back
into the width.
Parameters
Section titled “Parameters”bigint
The value to complement.
bitWidth
Section titled “bitWidth”number
Width of the integer, in bits.
Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”When bitWidth is not a non-negative safe integer.