• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/

Lines Matching refs:Result

161   llvm::APSInt Result;
163 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal)
166 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed)
173 return APFixedPoint(Result, CommonFXSema);
185 llvm::APSInt Result;
187 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal)
190 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed)
197 return APFixedPoint(Result, CommonFXSema);
226 llvm::APSInt Result;
228 Result = ThisVal.smul_ov(OtherVal, Overflowed)
231 Result = ThisVal.umul_ov(OtherVal, Overflowed)
234 Result.setIsSigned(CommonFXSema.isSigned());
243 if (Result < Min)
244 Result = Min;
245 else if (Result > Max)
246 Result = Max;
248 Overflowed = Result < Min || Result > Max;
253 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
279 llvm::APSInt Result;
282 llvm::APInt::sdivrem(ThisVal, OtherVal, Result, Rem);
286 Result = Result - 1;
288 Result = ThisVal.udiv(OtherVal);
289 Result.setIsSigned(CommonFXSema.isSigned());
298 if (Result < Min)
299 Result = Min;
300 else if (Result > Max)
301 Result = Max;
303 Overflowed = Result < Min || Result > Max;
308 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
359 llvm::APSInt Result = getIntPart();
366 Result = Result.extend(DstWidth);
373 if (Result.isSigned() && !DstSign) {
374 *Overflow = Result.isNegative() || Result.ugt(DstMax);
375 } else if (Result.isUnsigned() && DstSign) {
376 *Overflow = Result.ugt(DstMax);
378 *Overflow = Result < DstMin || Result > DstMax;
382 Result.setIsSigned(DstSign);
383 return Result.extOrTrunc(DstWidth);