On Wed, 30 Oct 2002, Terry Lambert wrote:

> This is the basis of Bruce's complaint:
>
> 
>http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1099099+0+archive/2002/freebsd-current/20021027.freebsd-current
>
> | gcc can't actually support the full range, since it doesn't control
> | the runtime environement (it could issue a fninit before main() to
> | change the default, but it shouldn't and doesn't).  The exponent
> | range is lost long before printf() is reached.  E.g.,
> |
> |         long double x= DBL_MAX;
> |         long double y = 2 * x;
> |
> | gives +Inf for y since the result is doesn't fit in 53-bit precision.
> | The system header correctly reports this default precision.  Any header
> | genrated by the gcc build should be no different, since the build should
> | run in the target environment.

Please forget this wrong example :-).  The precision doesn't affect the
exponent range.

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to