Related articles |
---|
long double support on 80x86 C++ Win32 compilers comments@cygnus-software.com (Bruce Dawson) (1998-08-10) |
Re: long double support on 80x86 C++ Win32 compilers ak@muc.de (Andi Kleen) (1998-08-10) |
Re: long double support on 80x86 C++ Win32 compilers michael_ross@ccm.intel.com (Michael Ross) (1998-08-10) |
Re: long double support on 80x86 C++ Win32 compilers mfinney@lynchburg.net (1998-08-13) |
Re: long double support on 80x86 C++ Win32 compilers comments@cygnus-software.com (Bruce Dawson) (1998-08-16) |
From: | Bruce Dawson <comments@cygnus-software.com> |
Newsgroups: | comp.compilers |
Date: | 16 Aug 1998 22:38:46 -0400 |
Organization: | Compilers Central |
References: | 98-08-061 98-08-070 |
Keywords: | C, arithmetic, 386 |
> > [ who supports long double values on x86 ? ]
>
> The Win32 port of gcc does (cygwin32). The compiler is freely available.
Glad to hear it. That, with Intel's compiler and Borland's give me three
to choose from. Hopefully one of them will be compatible enough with VC++
to allow it to handle our code, and interoperate if need be.
...
> > long double x = 123456789;
> > for (int i = 0; i < 10; i++)
> > {
> > x *= x;
> > printf("x = %g\n", x);
> ^^^^
> Should be %Lg
...
> This program is buggy. See above. At least on linux/x86 it will print wrong
> values (but gcc catches it of course when compiled with -Wall)
Right you are. Of course it worked fine on VC++ - since a long double is a
double.
--
Bruce Dawson, Cygnus Software Author of Fractal eXtreme for Win32
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.