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.
This commit is contained in:
Jeff Johnston 2010-06-18 16:26:25 +00:00
parent 4365c1598b
commit ce3b386964
3 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,11 @@
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.
2010-06-09 Paul Brook <paul@codesourcery.com> 2010-06-09 Paul Brook <paul@codesourcery.com>
* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be

View File

@ -10,7 +10,7 @@
#endif #endif
#ifndef BYTE_ORDER #ifndef BYTE_ORDER
#ifdef __IEEE_LITTLE_ENDIAN #if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
#else #else
#define BYTE_ORDER BIG_ENDIAN #define BYTE_ORDER BIG_ENDIAN

View File

@ -62,12 +62,8 @@
# define __IEEE_BIG_ENDIAN # define __IEEE_BIG_ENDIAN
# endif # endif
#else #else
# define __IEEE_BIG_ENDIAN
# ifdef __ARMEL__ # ifdef __ARMEL__
# define __IEEE_LITTLE_ENDIAN
# else
# define __IEEE_BIG_ENDIAN
# endif
# ifdef __ARMWEL__
# define __IEEE_BYTES_LITTLE_ENDIAN # define __IEEE_BYTES_LITTLE_ENDIAN
# endif # endif
#endif #endif