> I don't know why double would be twice as fast as float, considering
> that the ASM code shows a separate instruction for +,-,*,/ for both
> floats and doubles. Perhaps the double math instructions take few
> internal processor cycles than the float instructions. In any case, my
> original conclusion still holds: I should upgrade to double.
Hi,
as far as I know, using double is normally faster than using float.
Indeed, all calculations are done using doubles internally. When you
use floats, they are first cast into doubles, then the computation is
done, and the result is cast bask into float. The only reason I see to
use float is only for memory purposes.
K.


|