Multiplication followed by addition (https://en.wikipedia.org/wiki/Multiply–accumulate_operation) is a sufficiently common use-case to warrant a separate helper.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/include/llvm/Support/CheckedArithmetic.h | ||
---|---|---|
65–67 | if (llvm::Optional<T> Product = checkedMul(A, B)) { ... } |
if (llvm::Optional<T> Product = checkedMul(A, B)) { ... }