swab.h 439 B

123456789101112131415161718
  1. #ifndef _ASM_GENERIC_SWAB_H
  2. #define _ASM_GENERIC_SWAB_H
  3. #include <asm/bitsperlong.h>
  4. /*
  5. * 32 bit architectures typically (but not always) want to
  6. * set __SWAB_64_THRU_32__. In user space, this is only
  7. * valid if the compiler supports 64 bit data types.
  8. */
  9. #if __BITS_PER_LONG == 32
  10. #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  11. #define __SWAB_64_THRU_32__
  12. #endif
  13. #endif
  14. #endif /* _ASM_GENERIC_SWAB_H */