4 ms·
IIRC that only work if a%b==0 otherwise the general division trick is more complex.
by gpderetta 10y ago
IIRC that only work if a%b==0 otherwise the general division trick is more complex.
- caf 10y agoYes, you are correct - multiplying by the integer inverse only works for dividends that are an integer multiple of the divisor.