Lines Matching refs:word
7 * __fls - find last (most-significant) set bit in a long word
8 * @word: the word to search
12 static __always_inline unsigned long __fls(unsigned long word)
17 if (!(word & (~0ul << 32))) {
19 word <<= 32;
22 if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
24 word <<= 16;
26 if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
28 word <<= 8;
30 if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
32 word <<= 4;
34 if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
36 word <<= 2;
38 if (!(word & (~0ul << (BITS_PER_LONG-1))))