This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: CPP macro for Byte-order
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Joe Buck <jbuck at synopsys dot COM>
- Cc: gdr at codesourcery dot com (Gabriel Dos Reis), gcc at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Fri, 18 Jan 2002 10:24:24 +0000
- Subject: Re: CPP macro for Byte-order
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
>
> On the other hand, the gcc backends define BITS_BIG_ENDIAN,
> BYTES_BIG_ENDIAN, and WORDS_BIG_ENDIAN (you would want BYTES_BIG_ENDIAN to
> solve the problem of detecting NaNs and the like).
It is a common mistake to confuse the INTEGER endian settings with the
requirements for floating point numbers. The two need not be related, and
on many architectures aren't.
Please keep these separate.
R.