3 static __always_inline __attribute_const__ u32
__arch_bitrev32(u32 x
)
5 __asm__ ("rbit %w0, %w1" : "=r" (x
) : "r" (x
));
9 static __always_inline __attribute_const__ u16
__arch_bitrev16(u16 x
)
11 return __arch_bitrev32((u32
)x
) >> 16;
14 static __always_inline __attribute_const__ u8
__arch_bitrev8(u8 x
)
16 return __arch_bitrev32((u32
)x
) >> 24;