Lines Matching refs:digit
47 /// A utility function that converts a character to a digit.
175 /// add_1 - This function adds a single "digit" integer, y, to the multiple
176 /// "digit" integer array, x[]. x[] is modified to reflect the addition and
183 y = 1; // Carry one to next digit.
201 /// sub_1 - This function subtracts a single "digit" (64-bit word), y, from
202 /// the multi-digit integer array, x[], propagating the borrowed 1 value until
212 y = 1; // We have to "borrow 1" from next "digit"
287 /// @brief Multiply a multi-digit APInt by a single digit (64-bit) integer.
293 // For each digit of x.
298 // hasCarry - A flag to indicate if there is a carry to the next digit.
1633 DEBUG(dbgs() << "KnuthDiv: quotient digit #" << j << '\n');
1720 DEBUG(dbgs() << "\nKnuthDiv: digit result = " << q[j] << '\n');
2142 // Set up an APInt for the digit to add outside the loop so we don't
2147 // Enter digit traversal loop
2149 unsigned digit = getDigit(*p, radix);
2150 assert(digit < radix && "Invalid character in digit string");
2160 // Add in the digit we just interpreted
2162 apdigit.VAL = digit;
2164 apdigit.pVal[0] = digit;
2258 // because the number of bits per digit (1, 3 and 4 respectively) divides
2261 // Just shift tmp right for each digit width until it becomes zero
2266 unsigned Digit = unsigned(Tmp.getRawData()[0]) & MaskAmt;
2267 Str.push_back(Digits[Digit]);
2277 unsigned Digit = (unsigned)APdigit.getZExtValue();
2278 assert(Digit < Radix && "divide failed");
2279 Str.push_back(Digits[Digit]);