This source file includes following definitions.
- __arch_swahb32
- __arch_swab32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef __ASM_ARM_SWAB_H
17 #define __ASM_ARM_SWAB_H
18
19 #include <uapi/asm/swab.h>
20
21 #if __LINUX_ARM_ARCH__ >= 6
22
23 static inline __attribute_const__ __u32 __arch_swahb32(__u32 x)
24 {
25 __asm__ ("rev16 %0, %1" : "=r" (x) : "r" (x));
26 return x;
27 }
28 #define __arch_swahb32 __arch_swahb32
29 #define __arch_swab16(x) ((__u16)__arch_swahb32(x))
30
31 static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
32 {
33 __asm__ ("rev %0, %1" : "=r" (x) : "r" (x));
34 return x;
35 }
36 #define __arch_swab32 __arch_swab32
37
38 #endif
39 #endif