Lines Matching refs:bits
8 unsigned int __bitmap_weight(const unsigned long *bitmap, int bits)
10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG;
15 if (bits % BITS_PER_LONG)
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
22 const unsigned long *bitmap2, int bits)
25 int nr = BITS_TO_LONGS(bits);
61 const unsigned long *bitmap2, unsigned int bits)
64 unsigned int lim = bits/BITS_PER_LONG;
69 if (bits % BITS_PER_LONG)
71 BITMAP_LAST_WORD_MASK(bits));
76 const unsigned long *bitmap2, unsigned int bits)
78 unsigned int k, lim = bits/BITS_PER_LONG;
83 if (bits % BITS_PER_LONG)
84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
91 const unsigned long *bitmap2, unsigned int bits)
93 unsigned int k, lim = bits/BITS_PER_LONG;
98 if (bits % BITS_PER_LONG)
99 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))