Lines Matching refs:Overflow
1956 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
1958 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1963 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1965 Overflow = Res.ult(RHS); in uadd_ov()
1969 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1971 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1976 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1978 Overflow = Res.ugt(*this); in usub_ov()
1982 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1984 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
1988 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1992 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS; in smul_ov()
1994 Overflow = false; in smul_ov()
1998 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
2000 Overflow = true; in umul_ov()
2005 Overflow = Res.isNegative(); in umul_ov()
2010 Overflow = true; in umul_ov()
2015 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
2016 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
2017 if (Overflow) in sshl_ov()
2021 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2023 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
2028 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
2029 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2030 if (Overflow) in ushl_ov()
2033 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
2039 bool Overflow; in sadd_sat() local
2040 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
2041 if (!Overflow) in sadd_sat()
2049 bool Overflow; in uadd_sat() local
2050 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
2051 if (!Overflow) in uadd_sat()
2058 bool Overflow; in ssub_sat() local
2059 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
2060 if (!Overflow) in ssub_sat()
2068 bool Overflow; in usub_sat() local
2069 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
2070 if (!Overflow) in usub_sat()
2077 bool Overflow; in smul_sat() local
2078 APInt Res = smul_ov(RHS, Overflow); in smul_sat()
2079 if (!Overflow) in smul_sat()
2090 bool Overflow; in umul_sat() local
2091 APInt Res = umul_ov(RHS, Overflow); in umul_sat()
2092 if (!Overflow) in umul_sat()
2099 bool Overflow; in sshl_sat() local
2100 APInt Res = sshl_ov(RHS, Overflow); in sshl_sat()
2101 if (!Overflow) in sshl_sat()
2109 bool Overflow; in ushl_sat() local
2110 APInt Res = ushl_ov(RHS, Overflow); in ushl_sat()
2111 if (!Overflow) in ushl_sat()