Lines Matching defs:quotient

73      * BigDecimal divideAndRound to increment the quotient. Use this constant
808 * divisor. The quotient is placed into quotient. The one word divisor is
814 int divideOneWord(int divisor, MutableBigInteger quotient) {
822 quotient.value[0] = q;
823 quotient.intLen = (q == 0) ? 0 : 1;
824 quotient.offset = 0;
828 if (quotient.value.length < intLen)
829 quotient.value = new int[intLen];
830 quotient.offset = 0;
831 quotient.intLen = intLen;
839 quotient.value[0] = 0;
841 quotient.value[0] = (int)(remLong / divisorLong);
842 rem = (int) (remLong - (quotient.value[0] * divisorLong));
857 quotient.value[intLen - xlen] = qWord[0];
862 quotient.normalize();
871 * Calculates the quotient of this div b and places the quotient in the
881 MutableBigInteger divide(MutableBigInteger b, MutableBigInteger quotient) {
887 quotient.intLen = quotient.offset;
894 quotient.intLen = quotient.offset = 0;
899 quotient.value[0] = quotient.intLen = 1;
900 quotient.offset = 0;
904 quotient.clear();
907 int r = divideOneWord(b.value[b.offset], quotient);
915 return divideMagnitude(div, quotient);
919 * Internally used to calculate the quotient of this div v and places the
920 * quotient in the provided MutableBigInteger object and the remainder is
925 long divide(long v, MutableBigInteger quotient) {
931 quotient.intLen = quotient.offset = 0;
938 quotient.clear();
941 return divideOneWord((int)v, quotient) & LONG_MASK;
944 return divideMagnitude(div, quotient).toLong();
950 * array. The quotient will be placed into the provided quotient object &
954 MutableBigInteger quotient) {
964 // Set the quotient size
967 if (quotient.value.length < limit) {
968 quotient.value = new int[limit];
969 quotient.offset = 0;
971 quotient.intLen = limit;
972 int[] q = quotient.value;
1053 // Store the quotient digit
1061 quotient.normalize();
1088 // Approximate the quotient and remainder