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()
338 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
344 if (bits % BITS_PER_LONG) in __bitmap_weight()
355 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
361 bits_to_set = BITS_PER_LONG; in __bitmap_set()
376 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
382 bits_to_clear = BITS_PER_LONG; in __bitmap_clear()
1265 index = pos / BITS_PER_LONG; in __reg_op()
1266 offset = pos - (index * BITS_PER_LONG); in __reg_op()
1268 nbitsinlong = min(nbits_reg, BITS_PER_LONG); in __reg_op()
1378 for (i = 0; i < nbits/BITS_PER_LONG; i++) { in bitmap_copy_le()
1379 if (BITS_PER_LONG == 64) in bitmap_copy_le()
1452 #if BITS_PER_LONG == 64
1471 if (nbits % BITS_PER_LONG) in bitmap_from_arr32()
1494 if (nbits % BITS_PER_LONG) in bitmap_to_arr32()