ΒΆtemplate <typename T>
typename std::enable_if<std::is_signed<T>::value,
                        llvm::Optional<T>>::type
checkedMulAdd(T A, T B, T C)

Description

Multiply A and B, and add C to the resulting product.

Declared at: llvm/include/llvm/Support/CheckedArithmetic.h:75

Templates

T

Parameters

T A
T B
T C

Returns

Optional of result if no signed overflow occurred,\c None otherwise.