Searched refs:BITMAP_LAST_WORD_MASK (Results 1 – 13 of 13) sorted by relevance
27 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro47 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()53 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()61 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()121 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()136 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()148 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
285 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()296 to[copy - 1] &= BITMAP_LAST_WORD_MASK(count); in bitmap_copy_and_extend()390 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()422 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()431 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()439 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()447 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()456 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()505 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; in bitmap_shift_right()514 *dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits); in bitmap_shift_left()[all …]
542 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits); in cpumask_setall()1144 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1152 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1219 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1225 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
313 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
67 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro130 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()187 *dst = ~(*src) & BITMAP_LAST_WORD_MASK(nbits); in bitmap_complement()197 return ! ((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()206 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()215 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()225 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()238 return ctpopl(*bitmap & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_count_one()
51 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_empty()70 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_full()90 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_equal()108 dst[k] = ~src[k] & BITMAP_LAST_WORD_MASK(bits); in slow_bitmap_complement()177 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set()211 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_atomic()238 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()278 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_test_and_clear()323 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_test_and_clear_atomic()397 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_intersects()[all …]
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()99 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
18 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()38 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
57 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()81 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()108 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()251 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()289 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()315 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()330 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()344 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \377 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()398 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()[all …]
88 tmp = (FETCH) & BITMAP_LAST_WORD_MASK(sz); \207 unsigned long val = BITMAP_LAST_WORD_MASK(size); in _find_last_bit()
101 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_ll()137 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
1534 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_set_le()1554 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_clear_le()1570 BITMAP_LAST_WORD_MASK(bits)); in ntfs_bitmap_weight_le()