endian.h 413 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
  5. * in this tarball.
  6. */
  7. #ifndef _ENDIAN_H
  8. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  9. #endif
  10. /* CSKY CPU can be either big or little endian. */
  11. #ifdef __cskyBE__
  12. # define __BYTE_ORDER __BIG_ENDIAN
  13. #else
  14. # define __BYTE_ORDER __LITTLE_ENDIAN
  15. #endif