artial_dividend < divisor) {
            __Q[i] = 0;
            remainder = (uint32_t)partial_dividend;
         } else if (partial_dividend == divisor) {
            __Q[i] = 1;
            remainder = 0;
         } else {
            __Q[i] = (uint32_t)(partial_dividend / divisor);
            remainder = (uint32_t)(partial_dividend - (__Q[i] * divisor));
         }
      }
      if (__R) {
         __R[0] = remainder;
      }
   } else {
      // Now we're ready to invoke the Knuth classical divide algorithm.
      // In this case n > 1.
      KnuthDiv(__U, __V, __Q, __R, m, n);
   }

   // If the caller wants the quotient
   if (Quotient) {
      // Set up the Quotient value's memory.
      if (Quotient->getBitWidth() != LHS.getBitWidth()) {
         if (Quotient->isSingleWord()) {
            Quotient->set_val(0);
         }
      } else {
         Quotient->clear();
      }

      // The quotient is in Q. Reconstitute the quotient into Quotient's low
      // order words.
      if (lhsWords == 1) {
         uint64_t tmp =
            uint64_t(__Q[0])|((uint64_t(__Q[1]))<<(F_AP_BITS_PER_WORD / 2));
         Quotient->set_val(tmp);
      } else {
         //assert(!Quotient->isSingleWord());
         for (unsigned i = 0; i < lhsWords; ++i)
            Quotient->set_pVal(i,
                               uint64_t(__Q[i*2]) |
                               (uint64_t(__Q[i*2+1])) << (F_AP_BITS_PER_WORD / 2));
      }
      Quotient->clearUnusedBits();
   }

   // If the caller wants the remainder
   if (Remainder) {
      // Set up the Remainder value's memory.
      if (Remainder->getBitWidth() != RHS.getBitWidth()) {
         if (Remainder->isSingleWord()) {
            Remainder->set_val(0);
         }
      } else {
         Remainder->clear();
      }

      // Remainder is in R. Reconstitute the remainder into Remainder's low
      // order words.
      if (rhsWords == 1) {
         uint64_t tmp =
            uint64_t(__R[0])|((uint64_t(__R[1])