Lines Matching refs:Overflow
1875 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
1877 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1882 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
1884 Overflow = Res.ult(RHS); in uadd_ov()
1888 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
1890 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1895 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
1897 Overflow = Res.ugt(*this); in usub_ov()
1901 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
1903 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
1907 APInt APInt::smul_ov(const APInt &RHS, bool &Overflow) const { in smul_ov()
1911 Overflow = Res.sdiv(RHS) != *this || Res.sdiv(*this) != RHS; in smul_ov()
1913 Overflow = false; in smul_ov()
1917 APInt APInt::umul_ov(const APInt &RHS, bool &Overflow) const { in umul_ov()
1921 Overflow = Res.udiv(RHS) != *this || Res.udiv(*this) != RHS; in umul_ov()
1923 Overflow = false; in umul_ov()
1927 APInt APInt::sshl_ov(const APInt &ShAmt, bool &Overflow) const { in sshl_ov()
1928 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
1929 if (Overflow) in sshl_ov()
1933 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
1935 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
1940 APInt APInt::ushl_ov(const APInt &ShAmt, bool &Overflow) const { in ushl_ov()
1941 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
1942 if (Overflow) in ushl_ov()
1945 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
1951 bool Overflow; in sadd_sat() local
1952 APInt Res = sadd_ov(RHS, Overflow); in sadd_sat()
1953 if (!Overflow) in sadd_sat()
1961 bool Overflow; in uadd_sat() local
1962 APInt Res = uadd_ov(RHS, Overflow); in uadd_sat()
1963 if (!Overflow) in uadd_sat()
1970 bool Overflow; in ssub_sat() local
1971 APInt Res = ssub_ov(RHS, Overflow); in ssub_sat()
1972 if (!Overflow) in ssub_sat()
1980 bool Overflow; in usub_sat() local
1981 APInt Res = usub_ov(RHS, Overflow); in usub_sat()
1982 if (!Overflow) in usub_sat()