Re:How do compilers optimize divisions?
by contravariant on Tuesday February 21, 2017 @09:41AM
(#13695798)
Hmm, I wonder if this is more efficient than calculating mod 15 directly. It's basically something like
versus something like
Well, you're probably better of using the method in the article for the division, but this should work for small numbers.
[ Parent
| on HN ]
There are no comments on this comment yet.