1 #ifndef _REISERFS_SWAB_H_
2 #define _REISERFS_SWAB_H_
3 /* Stolen from linux/include/linux/byteorder/swab.h */
6 (((__u16)(x) & (__u16)0x00ffU) << 8) | \
7 (((__u16)(x) & (__u16)0xff00U) >> 8) ))
10 (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
11 (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
12 (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
13 (((__u32)(x) & (__u32)0xff000000UL) >> 24) ))
16 (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
17 (__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
18 (__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
19 (__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
20 (__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
21 (__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
22 (__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
23 (__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) ))
25 #endif /* _REISERFS_SWAB_H_ */