Lines Matching refs:mask
20 unsigned long mask = (val & c->low_bits) + c->low_bits;
21 return ~(mask | rhs);
24 #define create_zero_mask(mask) (mask)
26 static inline long find_zero(unsigned long mask)
30 if (mask >> 32)
31 mask >>= 32;
35 if (mask >> 16)
36 mask >>= 16;
39 return (mask >> 8) ? byte : byte + 1;
50 #define zero_bytemask(mask) (~1ul << __fls(mask))
56 * The optimal byte mask counting is probably going to be something
71 * the simpler "(mask & ONEBYTES) * ONEBYTES >> 56"
73 * mask them first.
75 static inline long count_masked_bytes(unsigned long mask)
77 return mask*0x0001020304050608ul >> 56;
83 static inline long count_masked_bytes(long mask)
86 long a = (0x0ff0001+mask) >> 23;
88 return a & mask;
96 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits;
97 *bits = mask;
98 return mask;
112 /* The mask we created is directly usable as a bytemask */
113 #define zero_bytemask(mask) (mask)
115 static inline unsigned long find_zero(unsigned long mask)
117 return count_masked_bytes(mask);