endian.h 434 B

12345678910111213141516
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. #ifndef _ENDIAN_H
  6. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  7. #endif /* _ENDIAN_H */
  8. #ifdef __NDS32_EB__
  9. #define __BYTE_ORDER __BIG_ENDIAN
  10. #else /* ! __NDS32_EB__ */
  11. #define __BYTE_ORDER __LITTLE_ENDIAN
  12. #endif /* ! __NDS32_EB__ */
  13. #define __FLOAT_WORD_ORDER __BYTE_ORDER