endian.h 568 B

12345678910111213141516171819
  1. #ifndef _ENDIAN_H
  2. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  3. #endif
  4. /* ARM can be either big or little endian. */
  5. #ifdef __ARMEB__
  6. # define __BYTE_ORDER __BIG_ENDIAN
  7. #else
  8. # define __BYTE_ORDER __LITTLE_ENDIAN
  9. #endif
  10. /* FPA floating point units are always big-endian, irrespective of the
  11. CPU endianness. VFP floating point units use the same endianness
  12. as the rest of the system. */
  13. #if defined __VFP_FP__ || defined __MAVERICK__
  14. # define __FLOAT_WORD_ORDER __BYTE_ORDER
  15. #else
  16. # define __FLOAT_WORD_ORDER __BIG_ENDIAN
  17. #endif