From owner-freebsd-ppc@FreeBSD.ORG Fri Nov 14 22:44:03 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E28041065675 for ; Fri, 14 Nov 2008 22:44:03 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAEB8FC12 for ; Fri, 14 Nov 2008 22:44:03 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id F3F3311A17; Sat, 15 Nov 2008 08:44:00 +1000 (EST) Received: (from dommail.onthenet.com.au [192.100.104.17]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with HTTP/1.1 id ELQ11380 (AUTH peterg@ptree32.com.au); Sat, 15 Nov 2008 08:43:19 +1000 (EST) From: Peter Grehan To: Andreas Tobler X-Mailer: Mirapoint Webmail Direct 3.8.6-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20081115084319.ELQ11380@dommail.onthenet.com.au> Date: Sat, 15 Nov 2008 08:43:19 +1000 (EST) X-Mailman-Approved-At: Fri, 14 Nov 2008 23:03:11 +0000 Cc: FreeBSD PowerPC ML Subject: Re: ppc float.h X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 22:44:04 -0000 Hi Andreas, >Coming back to myself. Doesn't matter if going to 128-bit long double or >not. The LDBL_MIN/MAX/EPSILON definitions in float.h are wrong. > >If you do a printf ("%Lf\n", LDBL_EPSILON); you run into a compiler warning: > >warning: format '%Lf' expects type 'long double', but argument 2 has >type 'double' > >So to fix that I propose the appended patch. > >Thanks, >Andreas > >P.S, making the compiler work with 128-bit long-double is still possible. I'm way out of my depth here. You probably want to speak to David Schulz (das@freebsd.org) - he's the floating point goto guy. later, Peter.