Go to the documentation of this file.
21 #include <asm/byteorder.h>
23 #ifdef __LITTLE_ENDIAN
24 #define MASK(x) (__insn_shl(1ULL, (x << 3)) - 1)
25 #define NULMASK(x) ((2ULL << x) - 1)
26 #define CFZ(x) __insn_ctz(x)
27 #define REVCZ(x) __insn_clz(x)
29 #define MASK(x) (__insn_shl(-2LL, ((-x << 3) - 1)))
30 #define NULMASK(x) (-2LL << (63 - x))
31 #define CFZ(x) __insn_clz(x)
32 #define REVCZ(x) __insn_ctz(x)