Multiply unsigned integers A and B, and add C to the resulting product.
Declared in <llvm/Support/CheckedArithmetic.h>
template<typename T>
std::optional<T>
checkedMulAddUnsigned(
T A,
T B,
T C)
requires std::is_unsigned_v<T>;
Optional of result if no unsigned overflow occurred, std::nullopt otherwise.
| Name | Description |
|---|---|
| A | Left-hand factor of the product. |
| B | Right-hand factor of the product. |
| C | Value added to the product. |