Public Member Functions | |
FixedDivisor (int32_t d) | |
uint64_t | getMagic () const |
int | getShift () const |
int32_t | div (int32_t n) const |
Calculates q = n / d . | |
int32_t | mod (int32_t n) const |
Calculates r = n % d . | |
void | divMod (int32_t n, int32_t &q, int32_t &r) const |
Calculates q = n / d and r = n % d together. | |
Definition at line 19 of file fixed_divisor.h.