endian.h 845 B

123456789101112131415161718192021222324252627
  1. /*
  2. * libc/sysdeps/linux/microblaze/bits/endian.h -- Define processor endianess
  3. *
  4. * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au>
  5. * Copyright (C) 2001 NEC Corporation
  6. * Copyright (C) 2001 Miles Bader <miles@gnu.org>
  7. *
  8. * This file is subject to the terms and conditions of the GNU Lesser
  9. * General Public License. See the file COPYING.LIB in the main
  10. * directory of this archive for more details.
  11. *
  12. * Written by Miles Bader <miles@gnu.org>
  13. * Microblaze port by John Williams
  14. */
  15. #ifndef _ENDIAN_H
  16. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  17. #endif
  18. /* Note: Toolchain supplies _BIG_ENDIAN or _LITTLE_ENDIAN */
  19. #if defined(_BIG_ENDIAN)
  20. # define __BYTE_ORDER __BIG_ENDIAN
  21. #elif defined(_LITTLE_ENDIAN)
  22. # define __BYTE_ORDER __LITTLE_ENDIAN
  23. #else
  24. # error "Endianness is unknown"
  25. #endif