Home | History | Annotate | Download | only in MCTargetDesc

Lines Matching refs:Val

56 /// Returns true iff Val consists of one contiguous run of 1s with any number of
60 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) {
61 if (!Val)
64 if (isShiftedMask_32(Val)) {
66 MB = countLeadingZeros(Val);
68 ME = countLeadingZeros((Val - 1) ^ Val);
71 Val = ~Val; // invert mask
72 if (isShiftedMask_32(Val)) {
74 ME = countLeadingZeros(Val) - 1;
76 MB = countLeadingZeros((Val - 1) ^ Val) + 1;