Lines Matching defs:word
86 * restricted to acting on a single-word quantity.
155 * restricted to acting on a single-word quantity.
294 * modify other bits in the word.
304 * Return the bit position (0..63) of the most significant 1 bit in a word
307 static __always_inline unsigned long __fls(unsigned long word)
311 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) &&
319 : "r" (word));
324 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) &&
332 : "r" (word));
340 if (!(word & (~0ul << 32))) {
342 word <<= 32;
345 if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
347 word <<= 16;
349 if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
351 word <<= 8;
353 if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
355 word <<= 4;
357 if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
359 word <<= 2;
361 if (!(word & (~0ul << (BITS_PER_LONG-1))))
367 * __ffs - find first bit in word.
368 * @word: The word to search
373 static __always_inline unsigned long __ffs(unsigned long word)
375 return __fls(word & -word);
380 * @word: The word to search
432 * @word: The word to search
438 static inline int ffs(int word)
440 if (!word)
443 return fls(word & -word);