This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PR fortran/23815: Add byte-swapping to gfortran
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."