Lines Matching +full:x +full:- +full:mask +full:-

4 #include <asm-generic/bitops/fls.h>
5 #include <asm-generic/bitops/__fls.h>
6 #include <asm-generic/bitops/fls64.h>
7 #include <asm-generic/bitops/__ffs.h>
16 int mask; in set_bit() local
21 mask = 1 << (nr & 0x1f); in set_bit()
23 *a |= mask; in set_bit()
34 int mask; in clear_bit() local
39 mask = 1 << (nr & 0x1f); in clear_bit()
41 *a &= ~mask; in clear_bit()
47 int mask; in change_bit() local
52 mask = 1 << (nr & 0x1f); in change_bit()
54 *a ^= mask; in change_bit()
60 int mask, retval; in test_and_set_bit() local
65 mask = 1 << (nr & 0x1f); in test_and_set_bit()
67 retval = (mask & *a) != 0; in test_and_set_bit()
68 *a |= mask; in test_and_set_bit()
76 int mask, retval; in test_and_clear_bit() local
81 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
83 retval = (mask & *a) != 0; in test_and_clear_bit()
84 *a &= ~mask; in test_and_clear_bit()
92 int mask, retval; in test_and_change_bit() local
97 mask = 1 << (nr & 0x1f); in test_and_change_bit()
99 retval = (mask & *a) != 0; in test_and_change_bit()
100 *a ^= mask; in test_and_change_bit()
121 * ffs - find first bit in word.
126 static inline int ffs (int x) in ffs() argument
130 if (!x) in ffs()
132 if (!(x & 0xffff)) { in ffs()
133 x >>= 16; in ffs()
136 if (!(x & 0xff)) { in ffs()
137 x >>= 8; in ffs()
140 if (!(x & 0xf)) { in ffs()
141 x >>= 4; in ffs()
144 if (!(x & 3)) { in ffs()
145 x >>= 2; in ffs()
148 if (!(x & 1)) { in ffs()
149 x >>= 1; in ffs()
156 #define hweight32(x) generic_hweight32(x) argument
157 #define hweight16(x) generic_hweight16(x) argument
158 #define hweight8(x) generic_hweight8(x) argument