mm: hugetlb: fix hugepage memory leak caused by wrong reserve count
[linux/fpc-iii.git] / arch / arm64 / include / asm / bitrev.h
bloba5a0c366013773f980919591c252f0fab5d2ca74
1 #ifndef __ASM_BITREV_H
2 #define __ASM_BITREV_H
3 static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x)
5 __asm__ ("rbit %w0, %w1" : "=r" (x) : "r" (x));
6 return 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;
19 #endif