rutt@paradise.mti.sgi.com writes:>I was curious as to whether you have any ideas about divisons and remainders>by constants. Of course the powers of 2 are easy, but what about the more>interesting cases.

The idea for non 2^i cases is to use a reciprocal. Here are some references
that discuss this idea.