Mail Archives: djgpp/1997/01/05/11:30:42
On Sat, 4 Jan 1997, Tony O'Bryan wrote:
> 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 see how this can be true, even on a 486, let alone Pentium. Look
at the cycle counts for the operations, they only differ by a factor of 2
to 10, definitely not thousands.
Can you post a program which exhibits the above, and the timing that you
get on your system?
- Raw text -