This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC 3.0.1 and long double


gcc itself under cygwin is no different from other gcc for i386.
As long as you are using x87 floating point (the default), long
double works as you expect, until you invoke something from the
library (newlib), which doesn't support long double.  Thus, to
get anything resembling long double support from libm, you must
supply your own scheme, such as a "mathinline.h" and a few long
double math functions.  Note that long double support in glibc
libm is spotty.  Newlib has no long double support for
printf/scanf either.  Accordingly, <float.h> is set up to report
long double limits as the same as double.
----- Original Message -----
From: "Andrew J. P. Maclean" <a.maclean@acfr.usyd.edu.au>
To: <cygwin@cygwin.com>
Sent: Tuesday, October 16, 2001 4:36 PM
Subject: GCC 3.0.1 and long double



Does GCC under cygwin support long double? If so, how do I enable
it? It
seems that 12 bytes are being allocated but the range for
floating point
numbers is still the double range and not the long double range.
___________________________________________
Andrew J. P. Maclean
Postal:
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Room:
106
Phone:
+61 2 9351 3283
Fax:
+61 2 9351 7474

http://www.acfr.usyd.edu.au/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]