llvm::APInt::sadd_sat

Operations that saturate on overflow. Signed add saturating to the signed min/max of the bit width.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
sadd_sat(APInt const& RHS) const;

Return Value

The saturating signed sum of *this and RHS.

Parameters

NameDescription
RHSRight-hand operand