llvm::APIntOps::mulhs

Multiply sign-extended operands and return the high N bits of the product.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
mulhs(
    APInt const& C1,
    APInt const& C2);

Return Value

The high N bits of the product of sign-extended C1 and C2.

Parameters

NameDescription
C1First N-bit operand (sign-extended to 2N)
C2Second N-bit operand (sign-extended to 2N)