byteorder.h 553 B

123456789101112131415161718192021222324252627
  1. #ifndef _CRIS_BYTEORDER_H
  2. #define _CRIS_BYTEORDER_H
  3. #ifdef __GNUC__
  4. #ifdef __KERNEL__
  5. #include <asm/arch/byteorder.h>
  6. /* defines are necessary because the other files detect the presence
  7. * of a defined __arch_swab32, not an inline
  8. */
  9. #define __arch__swab32(x) ___arch__swab32(x)
  10. #define __arch__swab16(x) ___arch__swab16(x)
  11. #endif /* __KERNEL__ */
  12. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  13. # define __BYTEORDER_HAS_U64__
  14. # define __SWAB_64_THRU_32__
  15. #endif
  16. #endif /* __GNUC__ */
  17. #include <linux/byteorder/little_endian.h>
  18. #endif