Lines Matching refs:BITS_PER_LONG
40 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
45 if (bits % BITS_PER_LONG) in __bitmap_equal()
58 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal()
66 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal()
96 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
111 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right()
142 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
151 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
206 if (first % BITS_PER_LONG) { in bitmap_cut()
207 keep = src[first / BITS_PER_LONG] & in bitmap_cut()
208 (~0UL >> (BITS_PER_LONG - first % BITS_PER_LONG)); in bitmap_cut()
214 for (i = first / BITS_PER_LONG; i < len; i++) { in bitmap_cut()
220 dst[i] = (dst[i] >> 1) | (carry << (BITS_PER_LONG - 1)); in bitmap_cut()
224 dst[first / BITS_PER_LONG] &= ~0UL << (first % BITS_PER_LONG); in bitmap_cut()
225 dst[first / BITS_PER_LONG] |= keep; in bitmap_cut()
233 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
238 if (bits % BITS_PER_LONG) in __bitmap_and()
271 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
276 if (bits % BITS_PER_LONG) in __bitmap_andnot()
298 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
303 if (bits % BITS_PER_LONG) in __bitmap_intersects()
313 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
318 if (bits % BITS_PER_LONG) in __bitmap_subset()
329 for (idx = 0; idx < __bits / BITS_PER_LONG; idx++) \
332 if (__bits % BITS_PER_LONG) \
362 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
368 bits_to_set = BITS_PER_LONG; in __bitmap_set()
383 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
389 bits_to_clear = BITS_PER_LONG; in __bitmap_clear()
781 #if BITS_PER_LONG == 64
800 if (nbits % BITS_PER_LONG) in bitmap_from_arr32()
823 if (nbits % BITS_PER_LONG) in bitmap_to_arr32()
829 #if BITS_PER_LONG == 32
855 if (nbits % BITS_PER_LONG) in bitmap_from_arr64()