delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <004c01c1569e$bd51f110$7edd18ac@amr.corp.intel.com> |
From: | "Tim Prince" <tprince AT computer DOT org> |
To: | <a DOT maclean AT acfr DOT usyd DOT edu DOT au>, <cygwin AT cygwin DOT com> |
References: | <002001c1569b$509d24c0$84d24e81 AT acfr DOT usyd DOT edu DOT au> |
Subject: | Re: GCC 3.0.1 and long double |
Date: | Tue, 16 Oct 2001 17:00:25 -0700 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4522.1200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
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 DOT maclean AT acfr DOT usyd DOT edu DOT au> To: <cygwin AT cygwin DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |