Lines Matching refs:Val

21   APSInt NewVal = Val;  in convert()
67 bool ThisSigned = Val.isSigned(); in compare()
72 unsigned CommonWidth = std::max(Val.getBitWidth(), OtherWidth); in compare()
117 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax() local
119 Val = Val.lshr(1); in getMax()
120 return APFixedPoint(Val, Sema); in getMax()
124 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() local
125 return APFixedPoint(Val, Sema); in getMin()
337 APSInt ThisVal = Val; in shl()
371 APSInt Val = getValue(); in toString() local
374 if (Val.isSigned() && Val.isNegative() && Val != -Val) { in toString()
375 Val = -Val; in toString()
379 APSInt IntPart = Val >> Scale; in toString()
382 unsigned Width = Val.getBitWidth() + 4; in toString()
383 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
392 .toString(Str, /*Radix=*/10, Val.isSigned()); in toString()
401 (!isSigned() && Val != 0) || (isSigned() && Val.isMinSignedValue()); in negate()
402 return APFixedPoint(-Val, Sema); in negate()
410 return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema); in negate()
473 APFloat::opStatus S = Flt.convertFromAPInt(Val, Sema.isSigned(), RM); in convertToFloat()
526 APFloat Val = Value; in getFromFloatValue() local
530 Val.convert(*OpSema, LosslessRM, &Ignored); in getFromFloatValue()
538 Val.multiply(ScaleFactor, LosslessRM); in getFromFloatValue()
543 Val.convertToInteger(Res, RM, &Ignored); in getFromFloatValue()
552 Val.roundToIntegral(RM); in getFromFloatValue()
553 Val.multiply(ScaleFactor, LosslessRM); in getFromFloatValue()
561 if (Val > FloatMax) in getFromFloatValue()
563 else if (Val < FloatMin) in getFromFloatValue()
566 Overflowed = Val > FloatMax || Val < FloatMin; in getFromFloatValue()