Mail Archives: djgpp/1997/01/29/17:15:36
Ryan Blazecka wrote:
>
> Michael Phelps wrote:
>
> > This may sound a little counterintuitive, but sometimes you can get better
> > results by using doubles rather than floats.
>
> Why is this? I've heard it many times, but never understood why.
On PC with FPU, all float calculations are done in double precision, so
when you do something on a float, your machine will sometimes :
1/ cast it to double
2/ do the computation in double
3/ cast the result to float...
Hence the loss in speed...
Francois
- Raw text -