BigInt.fromTwosComplement

private BigInt fromTwosComplement(ulong[] ext, bool negative) static pure @safe

Converts a w-limb two's-complement pattern back into a BigInt.

Parameters

extThe pattern limbs; consumed (modified in place).
negativeThe result sign, which must be derived from the operand signs (OR: either, AND: both, XOR: differing).

Returns

The signed value the pattern represents.