llvm::APInt::tcSubtract

Subtract a bignum plus carry from another and return the borrow flag.

Synopsis

Declared in <llvm/ADT/APInt.h>

static
WordType
tcSubtract(
    WordType* dst,
    WordType const* rhs,
    WordType carry,
    unsigned int parts);

Description

Computes DST -= RHS + CARRY where CARRY is zero or one.

Return Value

Outgoing borrow flag

Parameters

NameDescription
dstDestination / left-hand limb array (updated in place)
rhsRight-hand limb array
carryIncoming borrow (0 or 1)
partsNumber of limbs in each operand