POV-Ray : Newsgroups : povray.programming : Win32 Console POV-Ray : Re: Win32 Console POV-Ray Server Time
29 Jul 2024 00:28:14 EDT (-0400)
  Re: Win32 Console POV-Ray  
From: Thorsten Froehlich
Date: 23 Nov 1999 22:13:12
Message: <383b57c8@news.povray.org>
In article <383ADE3C.61F2BC9E@buckosoft.com> , Dick Balaska 
<dic### [at] buckosoftcom>  wrote:

> So if your code is using floats,
> they have to be converted to doubles before stuffing in the FPU (and
> converted back to float on the way out of the FPU).  So you lose precision
> and take a performance hit by using floats.

That is wrong! There is no time for conversion required, as it is a trivial
to "cut off" the exponent (reduce it from 11 to 8 bit) and the significant
(reducing it from 52 to 23 bit) when loading/storing them.
As a matter of fact, internally all current processors store floating-point
numbers as if they were doubles (or whatever other most precise internal
format they support). When performing the calculation as single-precision,
the other bits are just not taken into account.


     Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.