Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2004 10:39:45 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: long doubles?
Message-ID:  <40FB1851.3030305@freebsd.org>
In-Reply-To: <16634.60434.732990.437652@grasshopper.cs.duke.edu>
References:  <16634.60434.732990.437652@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> According to a printf of sizeof(long double), the size of a long
> double is 8 bytes, the same as a double.  However, according to
> sys/powerpc/include/float.h, LDBL_MANT_DIG == 113..  I don't know a
> lot about floating point, but I'm not sure this is possible. ;)
> 
> If long doubles are 8 bytes (and they are on MacOSX, so that's a good
> sign), then shouldn't the LDBL_* constants be the same as the DBL*
> constants from float.h?  (they are on MacOSX)

  Yeh, I'm not too sure about this. The SVR4 ABI defines long doubles
as 128 bits, and there is a GCC config knob to enable this. I'd
promised David Schultz that'd I would look at fixing this, but
haven't gotten around to it yet.

later,

Peter.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40FB1851.3030305>