Lines Matching refs:mask
19 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
20 return ~(mask | rhs); in prep_zero_mask()
23 #define create_zero_mask(mask) (mask) argument
25 static inline long find_zero(unsigned long mask) in find_zero() argument
29 if (mask >> 32) in find_zero()
30 mask >>= 32; in find_zero()
34 if (mask >> 16) in find_zero()
35 mask >>= 16; in find_zero()
38 return (mask >> 8) ? byte : byte + 1; in find_zero()
49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument
74 static inline long count_masked_bytes(unsigned long mask) in count_masked_bytes() argument
76 return mask*0x0001020304050608ul >> 56; in count_masked_bytes()
82 static inline long count_masked_bytes(long mask) in count_masked_bytes() argument
85 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes()
87 return a & mask; in count_masked_bytes()
95 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local
96 *bits = mask; in has_zero()
97 return mask; in has_zero()
112 #define zero_bytemask(mask) (mask) argument
114 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument
116 return count_masked_bytes(mask); in find_zero()