diff options
author | David Schultz <das@FreeBSD.org> | 2007-01-03 04:58:54 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2007-01-03 04:58:54 +0000 |
commit | c88250a57d53dba5de2e77508383019ff63e88b6 (patch) | |
tree | 5f657cd7247cc76d6a32a0ea1f51ec09f8b25661 /contrib/gdtoa/strtorf.c | |
parent | 19927830ac81be23193cf865356face1794ef07e (diff) |
Import of the latest gdtoa sources, which include fixes for minorvendor/gdtoa/20050923
problems relating to NaNs and rounding.
Notes
Notes:
svn path=/vendor/gdtoa/dist/; revision=165743
svn path=/vendor/gdtoa/20050923/; revision=165745; tag=vendor/gdtoa/20050923
Diffstat (limited to 'contrib/gdtoa/strtorf.c')
-rw-r--r-- | contrib/gdtoa/strtorf.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/contrib/gdtoa/strtorf.c b/contrib/gdtoa/strtorf.c index ecd1c0b553fa..46b0ba2e4246 100644 --- a/contrib/gdtoa/strtorf.c +++ b/contrib/gdtoa/strtorf.c @@ -26,14 +26,8 @@ THIS SOFTWARE. ****************************************************************/ -/* Please send bug reports to - David M. Gay - Bell Laboratories, Room 2C-463 - 600 Mountain Avenue - Murray Hill, NJ 07974-0636 - U.S.A. - dmg@bell-labs.com - */ +/* Please send bug reports to David M. Gay (dmg at acm dot org, + * with " at " changed at "@" and " dot " changed to "."). */ #include "gdtoaimp.h" @@ -64,7 +58,7 @@ ULtof(ULong *L, ULong *bits, Long exp, int k) break; case STRTOG_NaN: - L[0] = 0x7fffffff; + L[0] = f_QNAN; } if (k & STRTOG_Neg) L[0] |= 0x80000000L; |