chsvlib
chsv helper source code

◆ ceildiv()

constexpr IntegralType Chusov::Math::ceildiv ( IntegralType  nDividend,
IntegralType  nDivisor 
)
constexprnoexcept

Integer division with rounding towards infinity.

Template Parameters
IntegralTypeThe type of the operands.
Parameters
nDividendThe dividend.
nDivisorThe divisor
Returns
The quotient rounded towards positive infinity.