Lines Matching refs:Overflow

1959 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const {  in sadd_ov()
1961 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1966 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1968 Overflow = Res.ult(RHS); in uadd_ov()
1972 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1974 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1979 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1981 Overflow = Res.ugt(*this); in usub_ov()
1985 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1987 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
1991 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1995 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS; in smul_ov()
1997 Overflow = false; in smul_ov()
2001 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
2003 Overflow = true; in umul_ov()
2008 Overflow = Res.isNegative(); in umul_ov()
2013 Overflow = true; in umul_ov()
2018 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
2019 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
2020 if (Overflow) in sshl_ov()
2024 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2026 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
2031 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2032 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2033 if (Overflow) in ushl_ov()
2036 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
2042 bool Overflow; in sadd_sat() local
2043 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
2044 if (!Overflow) in sadd_sat()
2052 bool Overflow; in uadd_sat() local
2053 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
2054 if (!Overflow) in uadd_sat()
2061 bool Overflow; in ssub_sat() local
2062 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
2063 if (!Overflow) in ssub_sat()
2071 bool Overflow; in usub_sat() local
2072 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
2073 if (!Overflow) in usub_sat()
2080 bool Overflow; in smul_sat() local
2081 APInt Res = smul_ov(RHS, Overflow); in smul_sat()
2082 if (!Overflow) in smul_sat()
2093 bool Overflow; in umul_sat() local
2094 APInt Res = umul_ov(RHS, Overflow); in umul_sat()
2095 if (!Overflow) in umul_sat()
2102 bool Overflow; in sshl_sat() local
2103 APInt Res = sshl_ov(RHS, Overflow); in sshl_sat()
2104 if (!Overflow) in sshl_sat()
2112 bool Overflow; in ushl_sat() local
2113 APInt Res = ushl_ov(RHS, Overflow); in ushl_sat()
2114 if (!Overflow) in ushl_sat()