Skip to content

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.

bigint

The value to complement.

number

Width of the integer, in bits.

bigint

When bitWidth is not a non-negative safe integer.