Lines Matching defs:Quotient
1425 unsigned rhsWords, WordType *Quotient, WordType *Remainder) {
1527 if (Quotient) {
1529 Quotient[i] = Make_64(Q[i*2+1], Q[i*2]);
1580 APInt Quotient(BitWidth, 0); // to hold result.
1581 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr);
1582 return Quotient;
1613 APInt Quotient(BitWidth, 0); // to hold result.
1614 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr);
1615 return Quotient;
1733 APInt &Quotient, APInt &Remainder) {
1742 Quotient = APInt(BitWidth, QuotVal);
1755 Quotient = APInt(BitWidth, 0); // 0 / Y ===> 0
1761 Quotient = LHS; // X / 1 ===> X
1767 Quotient = APInt(BitWidth, 0); // X / Y ===> 0, iff X < Y
1772 Quotient = APInt(BitWidth, 1); // X / X ===> 1
1779 // change the size. This is necessary if Quotient or Remainder is aliased
1781 Quotient.reallocate(BitWidth);
1788 Quotient = lhsValue / rhsValue;
1794 divide(LHS.U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal,
1796 // Clear the rest of the Quotient and Remainder.
1797 std::memset(Quotient.U.pVal + lhsWords, 0,
1803 void APInt::udivrem(const APInt &LHS, uint64_t RHS, APInt &Quotient,
1812 Quotient = APInt(BitWidth, QuotVal);
1821 Quotient = APInt(BitWidth, 0); // 0 / Y ===> 0
1827 Quotient = LHS; // X / 1 ===> X
1834 Quotient = APInt(BitWidth, 0); // X / Y ===> 0, iff X < Y
1839 Quotient = APInt(BitWidth, 1); // X / X ===> 1
1846 // change the size. This is necessary if Quotient is aliased with LHS.
1847 Quotient.reallocate(BitWidth);
1852 Quotient = lhsValue / RHS;
1858 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder);
1859 // Clear the rest of the Quotient.
1860 std::memset(Quotient.U.pVal + lhsWords, 0,
1865 APInt &Quotient, APInt &Remainder) {
1868 APInt::udivrem(-LHS, -RHS, Quotient, Remainder);
1870 APInt::udivrem(-LHS, RHS, Quotient, Remainder);
1871 Quotient.negate();
1875 APInt::udivrem(LHS, -RHS, Quotient, Remainder);
1876 Quotient.negate();
1878 APInt::udivrem(LHS, RHS, Quotient, Remainder);
1883 APInt &Quotient, int64_t &Remainder) {
1887 APInt::udivrem(-LHS, -RHS, Quotient, R);
1889 APInt::udivrem(-LHS, RHS, Quotient, R);
1890 Quotient.negate();
1894 APInt::udivrem(LHS, -RHS, Quotient, R);
1895 Quotient.negate();
1897 APInt::udivrem(LHS, RHS, Quotient, R);