Lines Matching refs:BITS_PER_LONG
24 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_bit()
31 offset %= BITS_PER_LONG; in find_next_bit()
35 if (size < BITS_PER_LONG) { in find_next_bit()
41 size -= BITS_PER_LONG; in find_next_bit()
42 result += BITS_PER_LONG; in find_next_bit()
44 while (size >= 4*BITS_PER_LONG) { in find_next_bit()
57 result += 4*BITS_PER_LONG; in find_next_bit()
58 size -= 4*BITS_PER_LONG; in find_next_bit()
60 while (size >= BITS_PER_LONG) { in find_next_bit()
64 result += BITS_PER_LONG; in find_next_bit()
65 size -= BITS_PER_LONG; in find_next_bit()
73 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
89 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_zero_bit()
96 offset %= BITS_PER_LONG; in find_next_zero_bit()
99 tmp |= ~0UL >> (BITS_PER_LONG - offset); in find_next_zero_bit()
100 if (size < BITS_PER_LONG) { in find_next_zero_bit()
106 size -= BITS_PER_LONG; in find_next_zero_bit()
107 result += BITS_PER_LONG; in find_next_zero_bit()
109 while (size & ~(BITS_PER_LONG-1)) { in find_next_zero_bit()
113 result += BITS_PER_LONG; in find_next_zero_bit()
114 size -= BITS_PER_LONG; in find_next_zero_bit()
136 words = size / BITS_PER_LONG; in find_last_bit()
139 if (size & (BITS_PER_LONG-1)) { in find_last_bit()
140 tmp = (addr[words] & (~0UL >> (BITS_PER_LONG in find_last_bit()
141 - (size & (BITS_PER_LONG-1))))); in find_last_bit()
151 return words * BITS_PER_LONG + BITS_PER_LONG - 1 - clzl(tmp); in find_last_bit()