Lines Matching refs:word
307 static __always_inline unsigned long __fls(unsigned long word) in __fls() argument
311 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls()
319 : "r" (word)); in __fls()
324 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls()
332 : "r" (word)); in __fls()
340 if (!(word & (~0ul << 32))) { in __fls()
342 word <<= 32; in __fls()
345 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls()
347 word <<= 16; in __fls()
349 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
351 word <<= 8; in __fls()
353 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
355 word <<= 4; in __fls()
357 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls()
359 word <<= 2; in __fls()
361 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
373 static __always_inline unsigned long __ffs(unsigned long word) in __ffs() argument
375 return __fls(word & -word); in __ffs()
438 static inline int ffs(int word) in ffs() argument
440 if (!word) in ffs()
443 return fls(word & -word); in ffs()