swab_no.h 464 B

123456789101112131415161718192021222324
  1. #ifndef _M68KNOMMU_SWAB_H
  2. #define _M68KNOMMU_SWAB_H
  3. #include <linux/types.h>
  4. #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  5. # define __SWAB_64_THRU_32__
  6. #endif
  7. #if defined (__mcfisaaplus__) || defined (__mcfisac__)
  8. static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
  9. {
  10. asm(
  11. "byterev %0"
  12. : "=d" (val)
  13. : "0" (val)
  14. );
  15. return val;
  16. }
  17. #define __arch_swab32 __arch_swab32
  18. #endif
  19. #endif /* _M68KNOMMU_SWAB_H */