Searched refs:BITMAP_LAST_WORD_MASK (Results 1 – 11 of 11) sorted by relevance
24 #define BITMAP_LAST_WORD_MASK(nbits) \ macro50 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()56 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()64 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()72 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()158 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()174 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
225 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro262 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()287 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()313 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()337 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()361 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()368 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()377 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()385 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()393 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()[all …]
931 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \939 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \963 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \969 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
305 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()71 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
55 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()79 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()106 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()249 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()287 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()313 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()328 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()343 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()364 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()385 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()[all …]
143 unsigned long val = BITMAP_LAST_WORD_MASK(size); in find_last_bit()
100 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_ll()136 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
97 maskToSet &= BITMAP_LAST_WORD_MASK(size); in LOS_BitmapSetNBits()117 maskToClear &= BITMAP_LAST_WORD_MASK(size); in LOS_BitmapClrNBits()
20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
61 #define BITMAP_LAST_WORD_MASK(nbits) \ macro