On 2004-04-16 at 09:23:44, Mark J. Reed wrote: > 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?
Sorry for the tone - that was uncalled-for on my part. > The biggest use of modulus is in implementing hashes Rather, one of the biggest uses. I don't have documentation to support the claim that it is the biggest, and there are certainly others - date arithmetic, astronomy etc. I probably should have my morning caffeine before replying to the list. :) -Mark