Mail Archives: djgpp/1997/01/30/11:35:18
DJ Delorie wrote:
>
> > On PC with FPU, all float calculations are done in double precision, so
> > when you do something on a float, your machine will sometimes :
>
> No, on ALL pcs (FPU or Emulator), all float calculations are done as
> "long double" (80-bit native 387 format), so both floats and doubles
> get converted.
>
> However, many floats will get promoted to double to be passed as an
> argument to a function (printf) and most math functions return double,
> so using floats will result in extra conversions in those cases.
So then (disregarding calling the math functions, printf, etc), using
long doubles would be even faster, right?
- Raw text -