numeric.int.divider.signed ≡
template < typename NumeratorType, typename DenominatorType, auto UnrollingFactor > inline NumeratorType[2] divide(NumeratorType numerator, DenominatorType denominator) ยง
Calculate the quotient and remainder by dividing signed integers. The return value is an array with the first element being the quotient and the second element being the remainder.
Balance throughput and area by adjusting the
UnrollingFactor parameter.
Parameters
-
typename NumeratorType -
typename DenominatorType -
auto UnrollingFactorChunks of numerator bits of this size are processed in parallel, meaning the outer loop only has to execute
bitsizeof(NumeratorType)/UnrollingFactoriterations.