Re: Avoiding Overflow

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I think the FPU mode is set by default to 'double' precision, not 80 bit,
even though the registers are 80 bit. You can even set the precision to
'float'.

"Jason Doucette" <www.jasondoucette.com> wrote in message
news:uWVkQ9CyFHA.1412@xxxxxxxxxxxxxxxxxxxxxxx
>> Actually, this is incorrect as the multiply will be calculated first and
>> it can cause an overflow.
>
> Actually, with MS's optimizing compiler, all floating point computations
> are done on the FPU, which uses 10-byte floating point storage internally.
> All intermediate calculations are made on the FPU, with only the final
> result stored back to the float / double type that we were using.
>
> Therefore, the overflow would not occur when using float / double. If
> MSVC++ supported "long double" as a 10-byte float (why doesn't it?), we
> would be able to test this the overflow possibility. Until then, no
> worries.
>
> --
>
> Jason Doucette / Xona.com
> www.jasondoucette.com / www.xona.com
>
>


.



Relevant Pages

  • Re: Avoiding Overflow
    ... this is incorrect as the multiply will be calculated first and ... Actually, with MS's optimizing compiler, all floating point computations are ... the overflow would not occur when using float / double. ...
    (microsoft.public.vc.language)
  • Re: css problem (float)
    ... element in the normal flow that establishes a new block formatting ... not overlap any floats in the same block formatting context as the ... cells, positioned things, things with overflow other than visible. ... float: right; ...
    (alt.html)
  • Re: Fraction>>asFloat (FloatingPoint Overflow)
    ... /3)asFloat should raise an overflow, ... (i mean it likely won't be the closest float to the fraction) ... newN:= numerator. ... newD:= denominator. ...
    (comp.lang.smalltalk.dolphin)
  • Re: IE6 overflow problem
    ... the paragraph element growing height to enclose the floated image. ... overflow does not work with IE6 to address the problem. ... But this will not work in your case because you have the float within ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Float elements break block elemens - why?
    ... reasonable connection between a float and overflow. ... other than visible means a new BFC. ... Now when I scroll the div, ...
    (comp.infosystems.www.authoring.stylesheets)