Lines Matching +full:32 +full:k

40 	unsigned int k, lim = bits/BITS_PER_LONG;  in __bitmap_equal()  local
41 for (k = 0; k < lim; ++k) in __bitmap_equal()
42 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal()
46 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
58 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() local
61 for (k = 0; k < lim; ++k) { in __bitmap_or_equal()
62 if ((bitmap1[k] | bitmap2[k]) != bitmap3[k]) in __bitmap_or_equal()
69 tmp = (bitmap1[k] | bitmap2[k]) ^ bitmap3[k]; in __bitmap_or_equal()
75 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local
76 for (k = 0; k < lim; ++k) in __bitmap_complement()
77 dst[k] = ~src[k]; in __bitmap_complement()
95 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local
98 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
105 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
108 upper = src[off + k + 1]; in __bitmap_shift_right()
109 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
113 lower = src[off + k]; in __bitmap_shift_right()
114 if (off + k == lim - 1) in __bitmap_shift_right()
117 dst[k] = lower | upper; in __bitmap_shift_right()
140 int k; in __bitmap_shift_left() local
143 for (k = lim - off - 1; k >= 0; --k) { in __bitmap_shift_left()
150 if (rem && k > 0) in __bitmap_shift_left()
151 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
154 upper = src[k] << rem; in __bitmap_shift_left()
155 dst[k + off] = lower | upper; in __bitmap_shift_left()
174 * In pictures, example for a big-endian 32-bit architecture:
182 * 16 14 0 32
190 * 14 (bit 17 0 32
232 unsigned int k; in __bitmap_and() local
236 for (k = 0; k < lim; k++) in __bitmap_and()
237 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
239 result |= (dst[k] = bitmap1[k] & bitmap2[k] & in __bitmap_and()
248 unsigned int k; in __bitmap_or() local
251 for (k = 0; k < nr; k++) in __bitmap_or()
252 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
259 unsigned int k; in __bitmap_xor() local
262 for (k = 0; k < nr; k++) in __bitmap_xor()
263 dst[k] = bitmap1[k] ^ bitmap2[k]; in __bitmap_xor()
270 unsigned int k; in __bitmap_andnot() local
274 for (k = 0; k < lim; k++) in __bitmap_andnot()
275 result |= (dst[k] = bitmap1[k] & ~bitmap2[k]); in __bitmap_andnot()
277 result |= (dst[k] = bitmap1[k] & ~bitmap2[k] & in __bitmap_andnot()
287 unsigned int k; in __bitmap_replace() local
290 for (k = 0; k < nr; k++) in __bitmap_replace()
291 dst[k] = (old[k] & ~mask[k]) | (new[k] & mask[k]); in __bitmap_replace()
298 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects() local
299 for (k = 0; k < lim; ++k) in __bitmap_intersects()
300 if (bitmap1[k] & bitmap2[k]) in __bitmap_intersects()
304 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
313 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset() local
314 for (k = 0; k < lim; ++k) in __bitmap_subset()
315 if (bitmap1[k] & ~bitmap2[k]) in __bitmap_subset()
319 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
792 halfwords = DIV_ROUND_UP(nbits, 32); in bitmap_from_arr32()
796 bitmap[i/2] |= ((unsigned long) buf[i]) << 32; in bitmap_from_arr32()
815 halfwords = DIV_ROUND_UP(nbits, 32); in bitmap_to_arr32()
819 buf[i] = (u32) (bitmap[i/2] >> 32); in bitmap_to_arr32()
829 #if BITS_PER_LONG == 32
844 if (n > 32) in bitmap_from_arr64()
845 *bitmap++ = val >> 32; in bitmap_from_arr64()
873 *buf |= (u64)(*bitmap++) << 32; in bitmap_to_arr64()