Lines Matching defs:word
88 * restricted to acting on a single-word quantity.
157 * restricted to acting on a single-word quantity.
296 * modify other bits in the word.
306 * Return the bit position (0..63) of the most significant 1 bit in a word
309 static __always_inline unsigned long __fls(unsigned long word)
313 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) &&
321 : "r" (word));
326 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) &&
334 : "r" (word));
342 if (!(word & (~0ul << 32))) {
344 word <<= 32;
347 if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
349 word <<= 16;
351 if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
353 word <<= 8;
355 if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
357 word <<= 4;
359 if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
361 word <<= 2;
363 if (!(word & (~0ul << (BITS_PER_LONG-1))))
369 * __ffs - find first bit in word.
370 * @word: The word to search
375 static __always_inline unsigned long __ffs(unsigned long word)
377 return __fls(word & -word);
382 * @word: The word to search
434 * @word: The word to search
440 static inline int ffs(int word)
442 if (!word)
445 return fls(word & -word);