diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2009-07-13 02:44:37 +0400 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2009-07-13 02:44:37 +0400 |
commit | 15e114f5c53b0f9f009384c16d7707f7195dbe27 (patch) | |
tree | fcf56fe980f46c55d94b6f42f91671ddc046b532 /winsup/mingw/mingwex/gdtoa/qnan.c | |
parent | 62fb43a72280b5a4f55fa5b547a887fa51de0c29 (diff) |
2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
* mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
* mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
sources as of Apr. 20, 2009. Update further to match the sources in
the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
double/ulong union from U to dbl_union for better grepping and white-
space tidy-ups.
Diffstat (limited to 'winsup/mingw/mingwex/gdtoa/qnan.c')
-rwxr-xr-x | winsup/mingw/mingwex/gdtoa/qnan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/gdtoa/qnan.c b/winsup/mingw/mingwex/gdtoa/qnan.c index ca564726a..9f4c25890 100755 --- a/winsup/mingw/mingwex/gdtoa/qnan.c +++ b/winsup/mingw/mingwex/gdtoa/qnan.c @@ -74,12 +74,16 @@ main(void) double d; Ulong L[4]; #ifndef NO_LONG_LONG - unsigned short u[5]; +/* need u[8] instead of u[5] for 64 bit */ + unsigned short u[8]; long double D; #endif } U; U a, b, c; int i; + a.L[0]=a.L[1]=a.L[2]=a.L[3]=0; + b.L[0]=b.L[1]=b.L[2]=b.L[3]=0; + c.L[0]=c.L[1]=c.L[2]=c.L[3]=0; a.L[0] = b.L[0] = 0x7f800000; c.f = a.f - b.f; |