Lines Matching refs:BITS_PER_LONG
51 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
56 if (bits % BITS_PER_LONG) in __bitmap_equal()
69 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal()
77 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal()
107 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
122 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right()
153 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
162 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
217 if (first % BITS_PER_LONG) { in bitmap_cut()
218 keep = src[first / BITS_PER_LONG] & in bitmap_cut()
219 (~0UL >> (BITS_PER_LONG - first % BITS_PER_LONG)); in bitmap_cut()
225 for (i = first / BITS_PER_LONG; i < len; i++) { in bitmap_cut()
231 dst[i] = (dst[i] >> 1) | (carry << (BITS_PER_LONG - 1)); in bitmap_cut()
235 dst[first / BITS_PER_LONG] &= ~0UL << (first % BITS_PER_LONG); in bitmap_cut()
236 dst[first / BITS_PER_LONG] |= keep; in bitmap_cut()
244 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
249 if (bits % BITS_PER_LONG) in __bitmap_and()
282 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
287 if (bits % BITS_PER_LONG) in __bitmap_andnot()
309 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
314 if (bits % BITS_PER_LONG) in __bitmap_intersects()
324 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
329 if (bits % BITS_PER_LONG) in __bitmap_subset()
340 for (idx = 0; idx < __bits / BITS_PER_LONG; idx++) \
343 if (__bits % BITS_PER_LONG) \
366 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
372 bits_to_set = BITS_PER_LONG; in __bitmap_set()
387 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
393 bits_to_clear = BITS_PER_LONG; in __bitmap_clear()
1263 index = pos / BITS_PER_LONG; in __reg_op()
1264 offset = pos - (index * BITS_PER_LONG); in __reg_op()
1266 nbitsinlong = min(nbits_reg, BITS_PER_LONG); in __reg_op()
1376 for (i = 0; i < nbits/BITS_PER_LONG; i++) { in bitmap_copy_le()
1377 if (BITS_PER_LONG == 64) in bitmap_copy_le()
1450 #if BITS_PER_LONG == 64
1469 if (nbits % BITS_PER_LONG) in bitmap_from_arr32()
1492 if (nbits % BITS_PER_LONG) in bitmap_to_arr32()
1498 #if BITS_PER_LONG == 32
1524 if (nbits % BITS_PER_LONG) in bitmap_from_arr64()