atom feed9 messages in org.freebsd.freebsd-ppcRe: ppc float.h
FromSent OnAttachments
Andreas ToblerNov 12, 2008 11:49 am 
Peter GrehanNov 12, 2008 4:59 pm 
Marcel MoolenaarNov 12, 2008 7:23 pm 
Andreas ToblerNov 13, 2008 11:12 am 
Andreas ToblerNov 13, 2008 11:13 am 
Andreas ToblerNov 14, 2008 1:02 pm 
Peter GrehanNov 14, 2008 2:42 pm 
Andreas ToblerNov 16, 2008 11:01 am 
Marcel MoolenaarNov 16, 2008 11:20 am 
Subject:Re: ppc float.h
From:Peter Grehan (gre@freebsd.org)
Date:Nov 14, 2008 2:42:56 pm
List:org.freebsd.freebsd-ppc

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.

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 (da@freebsd.org) - he's the floating point goto guy.

later,

Peter.