Lines Matching refs:Quotient
1582 assert(q && "Must provide quotient");
1633 DEBUG(dbgs() << "KnuthDiv: quotient digit #" << j << '\n');
1725 DEBUG(dbgs() << "KnuthDiv: quotient:");
1729 // D8. [Unnormalize]. Now q[...] is the desired quotient, and the desired
1759 APInt *Quotient, APInt *Remainder)
1812 // initialize the quotient and remainder
1862 // If the caller wants the quotient
1863 if (Quotient) {
1864 // Set up the Quotient value's memory.
1865 if (Quotient->BitWidth != LHS.BitWidth) {
1866 if (Quotient->isSingleWord())
1867 Quotient->VAL = 0;
1869 delete [] Quotient->pVal;
1870 Quotient->BitWidth = LHS.BitWidth;
1871 if (!Quotient->isSingleWord())
1872 Quotient->pVal = getClearedMemory(Quotient->getNumWords());
1874 Quotient->clearAllBits();
1876 // The quotient is in Q. Reconstitute the quotient into Quotient's low
1881 if (Quotient->isSingleWord())
1882 Quotient->VAL = tmp;
1884 Quotient->pVal[0] = tmp;
1886 assert(!Quotient->isSingleWord() && "Quotient APInt not large enough");
1888 Quotient->pVal[i] =
1965 APInt Quotient(1,0); // to hold result.
1966 divide(*this, lhsWords, RHS, rhsWords, &Quotient, 0);
1967 return Quotient;
2008 APInt &Quotient, APInt &Remainder) {
2017 Quotient = 0; // 0 / Y ===> 0
2024 Quotient = 0; // X / Y ===> 0, iff X < Y
2029 Quotient = 1; // X / X ===> 1
2038 Quotient = APInt(LHS.getBitWidth(), lhsValue / rhsValue);
2044 divide(LHS, lhsWords, RHS, rhsWords, &Quotient, &Remainder);