Re:How do compilers optimize divisions?
by im3w1l on Tuesday February 21, 2017 @12:46AM
(#13693569)
And for even divisors you can separate the divisor into a power of two, and an odd part. The odd part is checked as before, and the power of two is checked with an and mask.
[ Parent
| on HN ]