llvm::mod

mod overloads

Synopses

Declared in <llvm/ADT/DynamicAPInt.h>

Returns the remainder of LHS divided by RHS.

DynamicAPInt
mod(
    DynamicAPInt const& LHS,
    DynamicAPInt const& RHS);
» more...

Returns the remainder of the Euclidean division of LHS by RHS. Result is always non-negative.

template<
    typename U,
    typename V,
    typename T = common_sint<U, V>>
constexpr
T
mod(
    U Numerator,
    V Denominator);
» more...

Return Value

  • Non-negative remainder of LHS divided by RHS.
  • The non-negative Euclidean remainder of Numerator divided by Denominator.

Parameters

NameDescription
LHSDividend.
RHSPositive divisor.
NumeratorDividend.
DenominatorDivisor; must be positive.