Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: , 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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, is set up to report long double limits as the same as double. ----- Original Message ----- From: "Andrew J. P. Maclean" To: 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/