1997-11-26 04:14:44 +00:00
|
|
|
#ifndef _ENDIAN_H
|
|
|
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
|
|
|
#endif
|
|
|
|
|
2005-06-13 10:11:47 +00:00
|
|
|
/* ARM can be either big or little endian. */
|
1999-04-12 09:04:34 +00:00
|
|
|
#ifdef __ARMEB__
|
|
|
|
#define __BYTE_ORDER __BIG_ENDIAN
|
|
|
|
#else
|
1997-06-21 02:26:04 +00:00
|
|
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
1999-04-12 09:04:34 +00:00
|
|
|
#endif
|
2005-06-13 10:11:47 +00:00
|
|
|
|
|
|
|
/* FPA floating point units are always big-endian, irrespective of the
|
|
|
|
CPU endianness. VFP floating point units use the same endianness
|
|
|
|
as the rest of the system. */
|
|
|
|
#ifdef __VFP_FP__
|
|
|
|
#define __FLOAT_WORD_ORDER __BYTE_ORDER
|
|
|
|
#else
|
1998-11-27 11:34:17 +00:00
|
|
|
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
|
2005-06-13 10:11:47 +00:00
|
|
|
#endif
|