of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / arm / include / asm / bitrev.h
blobec291c350ea3814e4f16e13140a324a0b509a531
1 #ifndef __ASM_BITREV_H
2 #define __ASM_BITREV_H
4 static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x)
6 __asm__ ("rbit %0, %1" : "=r" (x) : "r" (x));
7 return x;
10 static __always_inline __attribute_const__ u16 __arch_bitrev16(u16 x)
12 return __arch_bitrev32((u32)x) >> 16;
15 static __always_inline __attribute_const__ u8 __arch_bitrev8(u8 x)
17 return __arch_bitrev32((u32)x) >> 24;
20 #endif