3 ms·
Changing the modulus to use known constants is an awesome trick! Great read
by martin_ 13y ago
Changing the modulus to use known constants is an awesome trick! Great read
- qznc 13y agoI reverted that part in dmd once. Same speed on my Intel i7 processor. Branching vs division is probably a tricky tradeoff.
- WalterBright 13y agoIt's worth checking the generated assembler to see if the optimization actually took place in your build. Note that you may be using an older dmc which did not do the divide optimization.