On Thu, Jun 05, 2003 at 10:22:06PM +0100, Timothy Box wrote: > > y = (T1 - ((ZCal * T2) / T2Cal)) / T2Cal = 774 words I keep expecting someone to point out that the code can be a lot smaller if most of those things are constants. The compiler might not be that smart, but if it's a critical calculation in an inner loop then I'd consider coming up with a multiplier/divider that worked for your specific values (or very close ones that have convenient binary properties). -- Ben Jackson http://www.ben.com/ -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu