Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build failure (alpha-current): floating point exception 8



On Mar 3,  7:25pm, martin%duskware.de@localhost (Martin Husemann) wrote:
-- Subject: Re: build failure (alpha-current): floating point exception 8

| On Tue, Mar 03, 2009 at 05:45:34PM +0000, Christos Zoulas wrote:
| > -   if (ep == s || r == HUGE_VAL || errno == ERANGE)
| > +   if (ep == s || memcmp(&r, &hv, sizeof(hv)) == 0 || errno == ERANGE)
| 
| Uhm, aren't there "don't care" bits in infinity, so we can't rely on memcmp
| here?

Our implementation of strtod(), seems to return only the HUGE_VAL, contrary
to the doc that says that it can return +/-HUGE_VAL. I guess back to the
drawing board... We probably have to use isinf(), or play signal handler
tricks.

christos


Home | Main Index | Thread Index | Old Index