Lines Matching refs:Mask
35 static unsigned getMaskElt(unsigned Mask, unsigned Elt) { in getMaskElt() argument
36 return (Mask >> ((3-Elt)*4)) & 0xF; in getMaskElt()
39 static unsigned setMaskElt(unsigned Mask, unsigned Elt, unsigned NewVal) { in setMaskElt() argument
41 return (Mask & ~(0xF << FieldShift)) | (NewVal << FieldShift); in setMaskElt()
45 static bool isValidMask(unsigned short Mask) { in isValidMask() argument
46 unsigned short UndefBits = Mask & 0x8888; in isValidMask()
47 return (Mask & ((UndefBits >> 1)|(UndefBits>>2)|(UndefBits>>3))) == 0; in isValidMask()
52 static bool hasUndefElements(unsigned short Mask) { in hasUndefElements() argument
53 return (Mask & 0x8888) != 0; in hasUndefElements()
58 static bool isOnlyLHSMask(unsigned short Mask) { in isOnlyLHSMask() argument
59 return (Mask & 0x4444) == 0; in isOnlyLHSMask()
66 static unsigned short getLHSOnlyMask(unsigned short Mask) {
67 return Mask & 0xBBBB; // Keep only LHS and Undefs.
73 static unsigned getCompressedMask(unsigned short Mask) { in getCompressedMask() argument
74 return getMaskElt(Mask, 0)*9*9*9 + getMaskElt(Mask, 1)*9*9 + in getCompressedMask()
75 getMaskElt(Mask, 2)*9 + getMaskElt(Mask, 3); in getCompressedMask()