Lines Matching defs:Quotient
1421 unsigned rhsWords, WordType *Quotient, WordType *Remainder) {
1523 if (Quotient) {
1525 Quotient[i] = Make_64(Q[i*2+1], Q[i*2]);
1576 APInt Quotient(BitWidth, 0); // to hold result.
1577 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr);
1578 return Quotient;
1609 APInt Quotient(BitWidth, 0); // to hold result.
1610 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr);
1611 return Quotient;
1729 APInt &Quotient, APInt &Remainder) {
1738 Quotient = APInt(BitWidth, QuotVal);
1751 Quotient = APInt(BitWidth, 0); // 0 / Y ===> 0
1757 Quotient = LHS; // X / 1 ===> X
1763 Quotient = APInt(BitWidth, 0); // X / Y ===> 0, iff X < Y
1768 Quotient = APInt(BitWidth, 1); // X / X ===> 1
1775 // change the size. This is necessary if Quotient or Remainder is aliased
1777 Quotient.reallocate(BitWidth);
1784 Quotient = lhsValue / rhsValue;
1790 divide(LHS.U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal,
1792 // Clear the rest of the Quotient and Remainder.
1793 std::memset(Quotient.U.pVal + lhsWords, 0,
1799 void APInt::udivrem(const APInt &LHS, uint64_t RHS, APInt &Quotient,
1808 Quotient = APInt(BitWidth, QuotVal);
1817 Quotient = APInt(BitWidth, 0); // 0 / Y ===> 0
1823 Quotient = LHS; // X / 1 ===> X
1830 Quotient = APInt(BitWidth, 0); // X / Y ===> 0, iff X < Y
1835 Quotient = APInt(BitWidth, 1); // X / X ===> 1
1842 // change the size. This is necessary if Quotient is aliased with LHS.
1843 Quotient.reallocate(BitWidth);
1848 Quotient = lhsValue / RHS;
1854 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder);
1855 // Clear the rest of the Quotient.
1856 std::memset(Quotient.U.pVal + lhsWords, 0,
1861 APInt &Quotient, APInt &Remainder) {
1864 APInt::udivrem(-LHS, -RHS, Quotient, Remainder);
1866 APInt::udivrem(-LHS, RHS, Quotient, Remainder);
1867 Quotient.negate();
1871 APInt::udivrem(LHS, -RHS, Quotient, Remainder);
1872 Quotient.negate();
1874 APInt::udivrem(LHS, RHS, Quotient, Remainder);
1879 APInt &Quotient, int64_t &Remainder) {
1883 APInt::udivrem(-LHS, -RHS, Quotient, R);
1885 APInt::udivrem(-LHS, RHS, Quotient, R);
1886 Quotient.negate();
1890 APInt::udivrem(LHS, -RHS, Quotient, R);
1891 Quotient.negate();
1893 APInt::udivrem(LHS, RHS, Quotient, R);