Irix6 long doubles implemented wrong? (27_io/ostream_inserter_arith)

Alexandre Oliva aoliva@redhat.com
Sun Jan 26 10:53:00 GMT 2003


On Jan 19, 2003, Alexandre Oliva <aoliva@redhat.com> wrote:

> This means we'll consider denormals even numbers that have only the
> lower double as a denormal.  Which is in line with one of the
> approaches I had suggested (not that it counts much; I've probably
> enumerated all approaches that could possibly make sense, and most
> that couldn't :-D

> This conclusion was drawn based on the formal definition of the
> normalized and denormalized sets, as well as the informal definitions
> of normalized (those values of a floating point type F that provide
> the full precision allowed by that type) and denormalized (those that
> don't), regardless of the actual representation.  I believe this
> settles it.

> Anyway, if I had the time, I'd start by adding 53 to the minimum
> exponent range in real.c

This patch implements this change.  I've already done some testing on
IRIX, and it appears to give correct results, but bootstrap and
libstdc++ testing is still running.  Ok to install in 3.3 and mainline
if it completes?

> and fp-bit.h

There's no such thing there.  The code already works as expected.

> bumping up the mantissa size by 1

Wrong, as explained in another e-mail.

> and reverting the denorm_p changes I made in real.c and c-common.c.

Or rather not even putting them in.

> This would probably require some tweaks in the functions that convert
> into and out of ibm_extended_format in real.c,

It doesn't, they're simple enough that the change in the minimum
exponent doesn't affect them at all.

> and probably some similar fixes in fp-bit.c

No changes needed there either.  It's not really concerned about where
the boundary between normals and denormals is.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-mips-tfmode-ibmext-minexp.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030126/cd69b3fa/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Gcc-patches mailing list