Isaac Marino Bavaresco wrote: > There is also an algorithm that uses only right-shifts and subtractions, > I think it is much faster because the maximum number of rounds grows > linearly with the number of bits in the value. >=20 > Interestingly, if I remember it right, it always shifts two bits at a > time (divides by four). See the first two questions (and their answers) at http://www.circuitcellar.com/library/eq/178/index.htm -- Dave Tweed --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .