Lines Matching refs:mask
23 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local
24 return ~(mask | rhs); in prep_zero_mask()
27 #define create_zero_mask(mask) (mask) argument
29 static inline long find_zero(unsigned long mask) in find_zero() argument
33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero()
44 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask() argument
46 return ~1ul << __fls(mask); in zero_bytemask()
91 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument
93 return mask >> 3; in find_zero()
97 static inline unsigned long zero_bytemask(unsigned long mask) in zero_bytemask() argument
99 return (1UL << mask) - 1; in zero_bytemask()
119 static inline long count_masked_bytes(long mask) in count_masked_bytes() argument
122 long a = (0x0ff0001+mask) >> 23; in count_masked_bytes()
124 return a & mask; in count_masked_bytes()
133 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument
135 return count_masked_bytes(mask); in find_zero()
141 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits; in has_zero() local
142 *bits = mask; in has_zero()
143 return mask; in has_zero()
152 #define zero_bytemask(mask) (mask) argument