Lines Matching refs:Overflow

2009 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const {  in sadd_ov()
2011 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
2016 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
2018 Overflow = Res.ult(RHS); in uadd_ov()
2022 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
2024 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
2029 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
2031 Overflow = Res.ugt(*this); in usub_ov()
2035 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
2037 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
2041 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
2045 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS; in smul_ov()
2047 Overflow = false; in smul_ov()
2051 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
2055 Overflow = Res.udiv(RHS) != *this || Res.udiv(*this) != RHS; in umul_ov()
2057 Overflow = false; in umul_ov()
2061 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
2062 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
2063 if (Overflow) in sshl_ov()
2067 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2069 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
2074 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2075 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2076 if (Overflow) in ushl_ov()
2079 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()