endian.h 458 B

1234567891011121314151617181920
  1. /* ARM is (usually) little-endian.
  2. * Older FPU style (FPA) is always big-endian.
  3. * Newer FPU style (VFP) is same as host byte-order.
  4. */
  5. #ifndef _ENDIAN_H
  6. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  7. #endif
  8. #ifdef __ARMEB__
  9. # define __BYTE_ORDER __BIG_ENDIAN
  10. #else
  11. # define __BYTE_ORDER __LITTLE_ENDIAN
  12. #endif
  13. #ifdef __VFP_FP__
  14. # define __FLOAT_WORD_ORDER __BYTE_ORDER
  15. #else
  16. # define __FLOAT_WORD_ORDER __BIG_ENDIAN
  17. #endif