Date: Sat, 15 Nov 2008 08:43:19 +1000 (EST) From: Peter Grehan <grehan@freebsd.org> To: Andreas Tobler <andreast-list@fgznet.ch> Cc: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: ppc float.h Message-ID: <20081115084319.ELQ11380@dommail.onthenet.com.au>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081115084319.ELQ11380>