From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) Newsgroups: comp.os.msdos.djgpp Subject: Re: Fixed Point (Optimization) Date: Sat, 04 Jan 1997 22:39:23 GMT Organization: Southwest Missouri State University Lines: 14 Message-ID: <32cedb2d.17212822@ursa.smsu.edu> References: <32cd6b2c DOT 4726585 AT nntp DOT southeast DOT net> <01b9bb84$bc3275a0$e2c5b7c7 AT platko DOT ix DOT netcom DOT com> NNTP-Posting-Host: forseti.i31.smsu.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 4 Jan 1997 03:39:34 GMT, "Bob Platko" wrote: >Fixed Point math is still very essential for dramatic speed increasement >even with today's FPU's. I never bench marked Fixed Point compared to >floating point, so I don't know how much faster it will be; it depends on >how often you use it. A lookup table will most likely increase your speed. I did a quick check on floating point vs. integers not too long ago. I wrote a small loop that only added an integer to an integer counter, then rewrote it using floating point variables. On my Pentium 120, integers were THOUSANDS of times faster. I don't remember the exact numbers, but 50,000 loops required a few seconds with the floating point. The integers were so fast that the timer (calculated to several digits [7 or 8, I think]) couldn't register the elapsed time.