Lines Matching refs:x
23 #define ___swab16(x) \ argument
25 __u16 __x = (x); \
31 #define ___swab24(x) \ argument
33 __u32 __x = (x); \
40 #define ___swab32(x) \ argument
42 __u32 __x = (x); \
50 #define ___swab64(x) \ argument
52 __u64 __x = (x); \
64 #define ___constant_swab16(x) \ argument
66 (((__u16)(x) & (__u16)0x00ffU) << 8) | \
67 (((__u16)(x) & (__u16)0xff00U) >> 8) ))
68 #define ___constant_swab24(x) \ argument
70 (((__u32)(x) & (__u32)0x000000ffU) << 16) | \
71 (((__u32)(x) & (__u32)0x0000ff00U)) | \
72 (((__u32)(x) & (__u32)0x00ff0000U) >> 16) ))
73 #define ___constant_swab32(x) \ argument
75 (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
76 (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
77 (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
78 (((__u32)(x) & (__u32)0xff000000UL) >> 24) ))
79 #define ___constant_swab64(x) \ argument
81 (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
82 (__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
83 (__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
84 (__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
85 (__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
86 (__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
87 (__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
88 (__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) ))
94 # define __arch__swab16(x) ({ __u16 __tmp = (x) ; ___swab16(__tmp); }) argument
97 # define __arch__swab24(x) ({ __u32 __tmp = (x) ; ___swab24(__tmp); }) argument
100 # define __arch__swab32(x) ({ __u32 __tmp = (x) ; ___swab32(__tmp); }) argument
103 # define __arch__swab64(x) ({ __u64 __tmp = (x) ; ___swab64(__tmp); }) argument
107 # define __arch__swab16p(x) __arch__swab16(*(x)) argument
110 # define __arch__swab24p(x) __arch__swab24(*(x)) argument
113 # define __arch__swab32p(x) __arch__swab32(*(x)) argument
116 # define __arch__swab64p(x) __arch__swab64(*(x)) argument
120 # define __arch__swab16s(x) do { *(x) = __arch__swab16p((x)); } while (0) argument
123 # define __arch__swab24s(x) do { *(x) = __arch__swab24p((x)); } while (0) argument
126 # define __arch__swab32s(x) do { *(x) = __arch__swab32p((x)); } while (0) argument
129 # define __arch__swab64s(x) do { *(x) = __arch__swab64p((x)); } while (0) argument
137 # define __swab16(x) \ argument
138 (__builtin_constant_p((__u16)(x)) ? \
139 ___swab16((x)) : \
140 __fswab16((x)))
141 # define __swab24(x) \ argument
142 (__builtin_constant_p((__u32)(x)) ? \
143 ___swab24((x)) : \
144 __fswab24((x)))
145 # define __swab32(x) \ argument
146 (__builtin_constant_p((__u32)(x)) ? \
147 ___swab32((x)) : \
148 __fswab32((x)))
149 # define __swab64(x) \ argument
150 (__builtin_constant_p((__u64)(x)) ? \
151 ___swab64((x)) : \
152 __fswab64((x)))
154 # define __swab16(x) __fswab16(x) argument
155 # define __swab24(x) __fswab24(x) argument
156 # define __swab32(x) __fswab32(x) argument
157 # define __swab64(x) __fswab64(x) argument
161 static __inline__ __attribute_const__ __u16 __fswab16(__u16 x) in __fswab16() argument
163 return __arch__swab16(x); in __fswab16()
165 static __inline__ __u16 __swab16p(__u16 *x) in __swab16p() argument
167 return __arch__swab16p(x); in __swab16p()
174 static __inline__ __attribute_const__ __u32 __fswab24(__u32 x) in __fswab24() argument
176 return __arch__swab24(x); in __fswab24()
178 static __inline__ __u32 __swab24p(__u32 *x) in __swab24p() argument
180 return __arch__swab24p(x); in __swab24p()
187 static __inline__ __attribute_const__ __u32 __fswab32(__u32 x) in __fswab32() argument
189 return __arch__swab32(x); in __fswab32()
191 static __inline__ __u32 __swab32p(__u32 *x) in __swab32p() argument
193 return __arch__swab32p(x); in __swab32p()
201 static __inline__ __attribute_const__ __u64 __fswab64(__u64 x) in __fswab64() argument
204 __u32 h = x >> 32; in __fswab64()
205 __u32 l = x & ((1ULL<<32)-1); in __fswab64()
208 return __arch__swab64(x); in __fswab64()
211 static __inline__ __u64 __swab64p(__u64 *x) in __swab64p() argument
213 return __arch__swab64p(x); in __swab64p()