PR fortran/23815: Add byte-swapping to gfortran

Andreas Schwab schwab@suse.de
Wed Nov 16 00:09:00 GMT 2005


Thomas Koenig <Thomas.Koenig@online.de> writes:

> Would you get the m68k extended float format by byte-reversing i386
> 80-bit reals?

No.  Even if you get the byte mapping right there are still differences in
how the format is interpreted, especially when dealing with denormals.

> What are the alignment restrictions on m68k extended floats, and
> what's the sizeof() of this type?

The size is 12.  It has a 16 bit sign+exponent, followed by a 16 bit gap,
followed by the 64bit mantissa, everything big endian, of course.  There
are no architectural alignment restrictions.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Fortran mailing list