Lines Matching refs:Result
196 APSInt Result; in add() local
198 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal) in add()
201 Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed) in add()
208 return APFixedPoint(Result, CommonFXSema); in add()
220 APSInt Result; in sub() local
222 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal) in sub()
225 Result = ThisVal.isSigned() ? ThisVal.ssub_ov(OtherVal, Overflowed) in sub()
232 return APFixedPoint(Result, CommonFXSema); in sub()
261 APSInt Result; in mul() local
263 Result = ThisVal.smul_ov(OtherVal, Overflowed) in mul()
266 Result = ThisVal.umul_ov(OtherVal, Overflowed) in mul()
269 Result.setIsSigned(CommonFXSema.isSigned()); in mul()
278 if (Result < Min) in mul()
279 Result = Min; in mul()
280 else if (Result > Max) in mul()
281 Result = Max; in mul()
283 Overflowed = Result < Min || Result > Max; in mul()
288 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in mul()
320 APSInt Result; in div() local
323 APInt::sdivrem(ThisVal, OtherVal, Result, Rem); in div()
327 Result = Result - 1; in div()
329 Result = ThisVal.udiv(OtherVal); in div()
330 Result.setIsSigned(CommonFXSema.isSigned()); in div()
339 if (Result < Min) in div()
340 Result = Min; in div()
341 else if (Result > Max) in div()
342 Result = Max; in div()
344 Overflowed = Result < Min || Result > Max; in div()
349 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in div()
366 APSInt Result = ThisVal << Amt; in shl() local
367 Result.setIsSigned(Sema.isSigned()); in shl()
374 if (Result < Min) in shl()
375 Result = Min; in shl()
376 else if (Result > Max) in shl()
377 Result = Max; in shl()
379 Overflowed = Result < Min || Result > Max; in shl()
384 return APFixedPoint(Result.sextOrTrunc(Sema.getWidth()), Sema); in shl()
454 APSInt Result = getIntPart(); in convertToInt() local
461 Result = Result.extend(DstWidth); in convertToInt()
468 if (Result.isSigned() && !DstSign) { in convertToInt()
469 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
470 } else if (Result.isUnsigned() && DstSign) { in convertToInt()
471 *Overflow = Result.ugt(DstMax); in convertToInt()
473 *Overflow = Result < DstMin || Result > DstMax; in convertToInt()
477 Result.setIsSigned(DstSign); in convertToInt()
478 return Result.extOrTrunc(DstWidth); in convertToInt()