Lines Matching refs:Overflow
1898 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
1900 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1905 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1907 Overflow = Res.ult(RHS); in uadd_ov()
1911 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1913 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1918 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1920 Overflow = Res.ugt(*this); in usub_ov()
1924 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1926 Overflow = isMinSignedValue() && RHS.isAllOnes(); in sdiv_ov()
1930 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1934 Overflow = Res.sdiv(RHS) != *this || in smul_ov()
1937 Overflow = false; in smul_ov()
1941 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
1943 Overflow = true; in umul_ov()
1948 Overflow = Res.isNegative(); in umul_ov()
1953 Overflow = true; in umul_ov()
1958 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
1959 return sshl_ov(ShAmt.getLimitedValue(getBitWidth()), Overflow); in sshl_ov()
1962 APInt APInt::sshl_ov(unsigned ShAmt, bool &Overflow) const { in sshl_ov()
1963 Overflow = ShAmt >= getBitWidth(); in sshl_ov()
1964 if (Overflow) in sshl_ov()
1968 Overflow = ShAmt >= countl_zero(); in sshl_ov()
1970 Overflow = ShAmt >= countl_one(); in sshl_ov()
1975 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
1976 return ushl_ov(ShAmt.getLimitedValue(getBitWidth()), Overflow); in ushl_ov()
1979 APInt APInt::ushl_ov(unsigned ShAmt, bool &Overflow) const { in ushl_ov()
1980 Overflow = ShAmt >= getBitWidth(); in ushl_ov()
1981 if (Overflow) in ushl_ov()
1984 Overflow = ShAmt > countl_zero(); in ushl_ov()
1989 APInt APInt::sfloordiv_ov(const APInt &RHS, bool &Overflow) const { in sfloordiv_ov()
1990 APInt quotient = sdiv_ov(RHS, Overflow); in sfloordiv_ov()
1997 bool Overflow; in sadd_sat() local
1998 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
1999 if (!Overflow) in sadd_sat()
2007 bool Overflow; in uadd_sat() local
2008 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
2009 if (!Overflow) in uadd_sat()
2016 bool Overflow; in ssub_sat() local
2017 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
2018 if (!Overflow) in ssub_sat()
2026 bool Overflow; in usub_sat() local
2027 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
2028 if (!Overflow) in usub_sat()
2035 bool Overflow; in smul_sat() local
2036 APInt Res = smul_ov(RHS, Overflow); in smul_sat()
2037 if (!Overflow) in smul_sat()
2048 bool Overflow; in umul_sat() local
2049 APInt Res = umul_ov(RHS, Overflow); in umul_sat()
2050 if (!Overflow) in umul_sat()
2061 bool Overflow; in sshl_sat() local
2062 APInt Res = sshl_ov(RHS, Overflow); in sshl_sat()
2063 if (!Overflow) in sshl_sat()
2075 bool Overflow; in ushl_sat() local
2076 APInt Res = ushl_ov(RHS, Overflow); in ushl_sat()
2077 if (!Overflow) in ushl_sat()