Mail Archives: djgpp/1997/01/21/01:59:13
> >Yes, floating point is faster because imul and idiv use the floating
> >point unit to do the operations - thus an integer mul/divide has the
> >overhead of converting the int -> float, div/mul, then float -> int.
> >Whereas the floating point calculations just do the div/mul...
> If this were true, I couldn't do ANY multiplication/division on my
> computer, since I have no FPU (I'm not counting Emulators here).
> The integer mul/div routines are so slow precisely *because* they do not
> use the FPU - they use the integer unit, which was not made for
> mul/div's.
Oops, sorry - sometimes I forget everyone doesn't have a Pentium... :)
Leathal.
- Raw text -