diff options
author | Nick Clifton <nickc@redhat.com> | 2001-06-28 10:40:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-06-28 10:40:09 +0000 |
commit | 2b6b730c986a53e9e10ef22508541bdb3151a5fe (patch) | |
tree | 28b0f82b77b5a273b6fdf2b36034cb585a43a671 /newlib/libc/include | |
parent | 288f125efd393633bb18277d585682f09a5a8b52 (diff) | |
download | newlib-2b6b730c986a53e9e10ef22508541bdb3151a5fe.zip newlib-2b6b730c986a53e9e10ef22508541bdb3151a5fe.tar.gz newlib-2b6b730c986a53e9e10ef22508541bdb3151a5fe.tar.bz2 |
Handle ARMs with big endian IEEE words but little endian IEEE bytes
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index b96f912..cc5ced4 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -21,9 +21,11 @@ #if defined(__arm__) || defined(__thumb__) /* ARM always has big-endian words. Within those words the byte ordering - appears to be big or little endian. Newlib doesn't seem to care about - the byte ordering within words. */ + will be big or little endian depending upon the target. */ #define __IEEE_BIG_ENDIAN +#ifdef __ARMEL__ +#define __IEEE_BYTES_LITTLE_ENDIAN +#endif #endif #ifdef __hppa__ |