Lines Matching refs:Quotient
1491 assert(q && "Must provide quotient");
1542 DEBUG(dbgs() << "KnuthDiv: quotient digit #" << j << '\n');
1634 DEBUG(dbgs() << "KnuthDiv: quotient:");
1638 // D8. [Unnormalize]. Now q[...] is the desired quotient, and the desired
1668 APInt *Quotient, APInt *Remainder)
1721 // initialize the quotient and remainder
1771 // If the caller wants the quotient
1772 if (Quotient) {
1773 // Set up the Quotient value's memory.
1774 if (Quotient->BitWidth != LHS.BitWidth) {
1775 if (Quotient->isSingleWord())
1776 Quotient->VAL = 0;
1778 delete [] Quotient->pVal;
1779 Quotient->BitWidth = LHS.BitWidth;
1780 if (!Quotient->isSingleWord())
1781 Quotient->pVal = getClearedMemory(Quotient->getNumWords());
1783 Quotient->clearAllBits();
1785 // The quotient is in Q. Reconstitute the quotient into Quotient's low
1790 if (Quotient->isSingleWord())
1791 Quotient->VAL = tmp;
1793 Quotient->pVal[0] = tmp;
1795 assert(!Quotient->isSingleWord() && "Quotient APInt not large enough");
1797 Quotient->pVal[i] =
1874 APInt Quotient(1,0); // to hold result.
1875 divide(*this, lhsWords, RHS, rhsWords, &Quotient, 0);
1876 return Quotient;
1939 APInt &Quotient, APInt &Remainder) {
1948 Quotient = 0; // 0 / Y ===> 0
1955 Quotient = 0; // X / Y ===> 0, iff X < Y
1960 Quotient = 1; // X / X ===> 1
1969 Quotient
1975 divide(LHS, lhsWords, RHS, rhsWords, &Quotient, &Remainder);
1979 APInt &Quotient, APInt &Remainder) {
1982 APInt::udivrem(-LHS, -RHS, Quotient, Remainder);
1984 APInt::udivrem(-LHS, RHS, Quotient, Remainder);
1985 Quotient = -Quotient;
1989 APInt::udivrem(LHS, -RHS, Quotient, Remainder);
1990 Quotient = -Quotient;
1992 APInt::udivrem(LHS, RHS, Quotient, Remainder);