endian.h 460 B

123456789101112131415
  1. /* The MIPS architecture has selectable endianness.
  2. It exists in both little and big endian flavours and we
  3. want to be able to share the installed header files between
  4. both, so we define __BYTE_ORDER based on GCC's predefines. */
  5. #ifndef _ENDIAN_H
  6. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  7. #endif
  8. #ifdef __MIPSEB
  9. # define __BYTE_ORDER __BIG_ENDIAN
  10. #endif
  11. #ifdef __MIPSEL
  12. # define __BYTE_ORDER __LITTLE_ENDIAN
  13. #endif