svn commit: r303033 - head/share/man/man7

Bruce Evans brde at optusnet.com.au
Thu May 4 15:52:12 UTC 2017


On Thu, 4 May 2017, Ed Maste wrote:

> On 4 May 2017 at 09:44, Ed Schouten <ed at nuxi.nl> wrote:
>> Hi Ed,
>>
>> 2016-07-19 19:46 GMT+02:00 Ed Maste <emaste at 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


More information about the svn-src-all mailing list