home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-cris / byteorder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  512 b   |  27 lines

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