UIntFix.divmod
void divmod()(auto ref const(UIntFix) a, auto ref const(UIntFix) d,
out UIntFix q, out UIntFix r) static @safe pure nothrow @nogcDivides a by d with remainder: q = a / d, r = a % d. A restoring long division aligned to the quotient's top bit, so it runs once per quotient bit rather than once per numerator bit.
Parameters
a | the dividend |
d | the divisor (nonzero) |
q | the quotient (always fits the capacity) |
r | the remainder (less than d) |