1 #ifndef _ASM_IA64_BYTEORDER_H
2 #define _ASM_IA64_BYTEORDER_H
6 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co.
11 static __inline__ __const__ __u64
12 __ia64_swab64 (__u64 x)
16 __asm__ ("mux1 %0=%1,@rev" : "=r" (result) : "r" (x));
20 static __inline__ __const__ __u32
21 __ia64_swab32 (__u32 x)
23 return __ia64_swab64(x) >> 32;
26 static __inline__ __const__ __u16
27 __ia64_swab16(__u16 x)
29 return __ia64_swab64(x) >> 48;
32 #define __arch__swab64(x) __ia64_swab64(x)
33 #define __arch__swab32(x) __ia64_swab32(x)
34 #define __arch__swab16(x) __ia64_swab16(x)
36 #define __BYTEORDER_HAS_U64__
38 #include <linux/byteorder/little_endian.h>
40 #endif /* _ASM_IA64_BYTEORDER_H */