Lines Matching refs:BITS_PER_LONG
24 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv()
27 result += BITS_PER_LONG; in find_first_bit_inv()
28 size -= BITS_PER_LONG; in find_first_bit_inv()
32 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
36 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
43 const unsigned long *p = addr + (offset / BITS_PER_LONG); in find_next_bit_inv()
44 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_bit_inv()
50 offset %= BITS_PER_LONG; in find_next_bit_inv()
54 if (size < BITS_PER_LONG) in find_next_bit_inv()
58 size -= BITS_PER_LONG; in find_next_bit_inv()
59 result += BITS_PER_LONG; in find_next_bit_inv()
61 while (size & ~(BITS_PER_LONG-1)) { in find_next_bit_inv()
64 result += BITS_PER_LONG; in find_next_bit_inv()
65 size -= BITS_PER_LONG; in find_next_bit_inv()
71 tmp &= (~0UL << (BITS_PER_LONG - size)); in find_next_bit_inv()
75 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_next_bit_inv()