Lines Matching +full:32 +full:- +full:bit
17 #define BIT(nr) (1UL << (nr)) macro
29 * Create a contiguous bitmask starting at bit position @l and ending at
31 * GENMASK_ULL(39, 21) gives us the 64bit vector 0x000000ffffe00000.
34 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
37 (((~0ULL) << (l)) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h))))
45 int num = BITS_PER_LONG - 1; in fls()
48 if (!(word & (~0ul << 32))) { in fls()
49 num -= 32; in fls()
50 word <<= 32; in fls()
53 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in fls()
54 num -= 16; in fls()
57 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in fls()
58 num -= 8; in fls()
61 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in fls()
62 num -= 4; in fls()
65 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in fls()
66 num -= 2; in fls()
69 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in fls()
70 num -= 1; in fls()
76 return BITS_PER_LONG - __builtin_clzl(word) - 1; in fls()
82 return n && !(n & (n - 1)); in is_power_of_2()