diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2010-06-18 16:26:25 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2010-06-18 16:26:25 +0000 |
commit | ce3b386964645d0c5ede0a965a6f7ca96d26e331 (patch) | |
tree | b3eb466f8a48a6d29a0c3c4ea1c4c85343596e6b /newlib/libc/include | |
parent | 4365c1598b638364e8eb144af6988c77534e372c (diff) | |
download | newlib-ce3b386964645d0c5ede0a965a6f7ca96d26e331.zip newlib-ce3b386964645d0c5ede0a965a6f7ca96d26e331.tar.gz newlib-ce3b386964645d0c5ede0a965a6f7ca96d26e331.tar.bz2 |
2010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
* libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
__IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
based on __ARMEL flag.
* libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/machine/endian.h | 2 | ||||
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/newlib/libc/include/machine/endian.h b/newlib/libc/include/machine/endian.h index c1e8599..07ebc8f 100644 --- a/newlib/libc/include/machine/endian.h +++ b/newlib/libc/include/machine/endian.h @@ -10,7 +10,7 @@ #endif #ifndef BYTE_ORDER -#ifdef __IEEE_LITTLE_ENDIAN +#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN) #define BYTE_ORDER LITTLE_ENDIAN #else #define BYTE_ORDER BIG_ENDIAN diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index c174c21..59e0c1f 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -62,12 +62,8 @@ # define __IEEE_BIG_ENDIAN # endif #else +# define __IEEE_BIG_ENDIAN # ifdef __ARMEL__ -# define __IEEE_LITTLE_ENDIAN -# else -# define __IEEE_BIG_ENDIAN -# endif -# ifdef __ARMWEL__ # define __IEEE_BYTES_LITTLE_ENDIAN # endif #endif |