Lines Matching refs:BITS_PER_LONG

49 	unsigned int k, lim = bits/BITS_PER_LONG;  in __bitmap_equal()
54 if (bits % BITS_PER_LONG) in __bitmap_equal()
67 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal()
75 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal()
105 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
120 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right()
151 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
160 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
215 if (first % BITS_PER_LONG) { in bitmap_cut()
216 keep = src[first / BITS_PER_LONG] & in bitmap_cut()
217 (~0UL >> (BITS_PER_LONG - first % BITS_PER_LONG)); in bitmap_cut()
223 for (i = first / BITS_PER_LONG; i < len; i++) { in bitmap_cut()
229 dst[i] = (dst[i] >> 1) | (carry << (BITS_PER_LONG - 1)); in bitmap_cut()
233 dst[first / BITS_PER_LONG] &= ~0UL << (first % BITS_PER_LONG); in bitmap_cut()
234 dst[first / BITS_PER_LONG] |= keep; in bitmap_cut()
242 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
247 if (bits % BITS_PER_LONG) in __bitmap_and()
280 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
285 if (bits % BITS_PER_LONG) in __bitmap_andnot()
307 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
312 if (bits % BITS_PER_LONG) in __bitmap_intersects()
322 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
327 if (bits % BITS_PER_LONG) in __bitmap_subset()
336 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
342 if (bits % BITS_PER_LONG) in __bitmap_weight()
353 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
359 bits_to_set = BITS_PER_LONG; in __bitmap_set()
374 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
380 bits_to_clear = BITS_PER_LONG; in __bitmap_clear()
1123 index = pos / BITS_PER_LONG; in __reg_op()
1124 offset = pos - (index * BITS_PER_LONG); in __reg_op()
1126 nbitsinlong = min(nbits_reg, BITS_PER_LONG); in __reg_op()
1236 for (i = 0; i < nbits/BITS_PER_LONG; i++) { in bitmap_copy_le()
1237 if (BITS_PER_LONG == 64) in bitmap_copy_le()
1265 #if BITS_PER_LONG == 64
1284 if (nbits % BITS_PER_LONG) in bitmap_from_arr32()
1307 if (nbits % BITS_PER_LONG) in bitmap_to_arr32()