On Thu, 4 May 2017, Ed Maste wrote:

On 4 May 2017 at 09:44, Ed Schouten <e...@nuxi.nl> wrote:
Hi Ed,

2016-07-19 19:46 GMT+02:00 Ed Maste <ema...@freebsd.org>:
+.It arm         Ta soft Ta soft, double precision
...
+.It mips        Ta soft Ta identical to double

I was wondering, what's the difference between two ways of phrasing
it? If long double is double precision, it's identical to double,
right?

Wrong.  long double is a different type with a different rank to double.
It cannot be identical.

"identical" is a fuzzy way of saying that the representation is
identical and all operations are the same at the level of the represention.


Yes, good point. I copied the text that was on the wiki page and
missed making it consistent here. Probably the style used by the arm
entry is the one we want.

The arm entry is not technically incorrect, but is less useful.  It
would be satisfied by long doubles with twice the number of bits (half
padding) in a different order.

These tables probably shouldn't attempt to give any details except the
size and the padding.  Padding and representation are not mentioned for
integers at all, because everying knows that integers are 2's complement
with no padding.  Long doubles have padding on supported arches iff they
are longer than double but shorter than quad, but the tables don't give
enough details to determine this, and this is just one of the complications
for long doubles.  <float.h> also doesn't give enough details.  It has
to be augmented by _fpmath.h to see the details of the representation.

Bruce
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to