Lines Matching refs:mask
19 unsigned long mask = (val & c->low_bits) + c->low_bits;
20 return ~(mask | rhs);
23 #define create_zero_mask(mask) (mask)
25 static inline long find_zero(unsigned long mask)
29 if (mask >> 32)
30 mask >>= 32;
34 if (mask >> 16)
35 mask >>= 16;
38 return (mask >> 8) ? byte : byte + 1;
49 #define zero_bytemask(mask) (~1ul << __fls(mask))
55 * The optimal byte mask counting is probably going to be something
70 * the simpler "(mask & ONEBYTES) * ONEBYTES >> 56"
72 * mask them first.
74 static inline long count_masked_bytes(unsigned long mask)
76 return mask*0x0001020304050608ul >> 56;
82 static inline long count_masked_bytes(long mask)
85 long a = (0x0ff0001+mask) >> 23;
87 return a & mask;
95 unsigned long mask = ((a - c->one_bits) & ~a) & c->high_bits;
96 *bits = mask;
97 return mask;
111 /* The mask we created is directly usable as a bytemask */
112 #define zero_bytemask(mask) (mask)
114 static inline unsigned long find_zero(unsigned long mask)
116 return count_masked_bytes(mask);