Lines Matching refs:word
309 static __always_inline unsigned long __fls(unsigned long word) in __fls() argument
313 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls()
321 : "r" (word)); in __fls()
326 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls()
334 : "r" (word)); in __fls()
342 if (!(word & (~0ul << 32))) { in __fls()
344 word <<= 32; in __fls()
347 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls()
349 word <<= 16; in __fls()
351 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
353 word <<= 8; in __fls()
355 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
357 word <<= 4; in __fls()
359 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls()
361 word <<= 2; in __fls()
363 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
375 static __always_inline unsigned long __ffs(unsigned long word) in __ffs() argument
377 return __fls(word & -word); in __ffs()
440 static inline int ffs(int word) in ffs() argument
442 if (!word) in ffs()
445 return fls(word & -word); in ffs()