Lines Matching refs:BITS_PER_LONG
23 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv()
26 result += BITS_PER_LONG; in find_first_bit_inv()
27 size -= BITS_PER_LONG; in find_first_bit_inv()
31 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
42 const unsigned long *p = addr + (offset / BITS_PER_LONG); in find_next_bit_inv()
43 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_bit_inv()
49 offset %= BITS_PER_LONG; in find_next_bit_inv()
53 if (size < BITS_PER_LONG) in find_next_bit_inv()
57 size -= BITS_PER_LONG; in find_next_bit_inv()
58 result += BITS_PER_LONG; in find_next_bit_inv()
60 while (size & ~(BITS_PER_LONG-1)) { in find_next_bit_inv()
63 result += BITS_PER_LONG; in find_next_bit_inv()
64 size -= BITS_PER_LONG; in find_next_bit_inv()
70 tmp &= (~0UL << (BITS_PER_LONG - size)); in find_next_bit_inv()
74 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_next_bit_inv()