xanthian@saturn.ADS.COM (Metafont Consultant Account) (02/18/90)
In article <7416@ogicse.ogc.edu> daniels@ogicse.ogc.edu (Scott David Daniels) writes: >the hardware word size was thirty-two bits, and (since % produced inconsistent >results on our two target machines for full-sized words), Yep. It is utterly amazing how many modulus inplementations exist where (-1) mod m isn't m-1. This makes cellular automaton programs add half a dozen extra instructions per loop to treat a rectanglar array as a toroid. I don't know who originated this bogosity, but it would be nice if hardware and compiler folks would extirpate it once and for all from all machines and all languages, so programs using mod could port without stumbling over this implementation error. -- xanthian@ads.com xanthian@well.sf.ca.us (Kent Paul Dolan) Again, my opinions, not the account furnishers'.