On 2004-04-15 at 19:39:25, Austin Hastings wrote:
> Of course you used for buffers that were not powers of 2. Had they
> been powers of 2, you would have used & or &~. The fact that you 
> didn't use a power of 2 is pretty questionable. The dread Unix
> wizards will no doubt have questions for you about this. :-)

What are you talking about?  The biggest use of modulus is in
implementing hashes and when you are implementing hashes you want the
number of buckets to be a prime number, not a power of two.

-Mark

Reply via email to