hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/sh/include/uapi/asm/swab.h
....@@ -13,14 +13,9 @@
1313 static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
1414 {
1515 __asm__(
16
-#ifdef __SH5__
17
- "byterev %1, %0\n\t"
18
- "shari %0, 32, %0"
19
-#else
2016 "swap.b %1, %0\n\t"
2117 "swap.w %0, %0\n\t"
2218 "swap.b %0, %0"
23
-#endif
2419 : "=r" (x)
2520 : "r" (x));
2621
....@@ -31,12 +26,7 @@
3126 static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
3227 {
3328 __asm__(
34
-#ifdef __SH5__
35
- "byterev %1, %0\n\t"
36
- "shari %0, 32, %0"
37
-#else
3829 "swap.b %1, %0"
39
-#endif
4030 : "=r" (x)
4131 : "r" (x));
4232