byteorder.h 512 B

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