Lines Matching refs:radix
871 if (*s == '0') { // parse radix
876 radix = 10;
1116 /// parsing. If it detects a floating point number, the radix is set to 10.
1118 assert((radix == 8 || radix == 10) && "Unexpected radix");
1127 << StringRef(s, 1) << (radix == 8 ? 1 : 0);
1135 radix = 10;
1144 radix = 10;
1213 /// radix etc.
1224 radix = 16;
1296 radix = 2;
1313 // For now, the radix is set to 8. If we discover that we have a
1314 // floating point constant, the radix will change to 10. Octal floating
1316 radix = 8;
1334 radix = 10;
1361 // bits per digit in this radix. If we can't possibly overflow a
1367 if (alwaysFitsInto64Bits(radix, NumDigits)) {
1371 N = N * radix + llvm::hexDigitValue(*Ptr);
1382 llvm::APInt RadixVal(Val.getBitWidth(), radix);
1395 // If this letter is out of bound for this radix, reject it.
1396 assert(C < radix && "NumericLiteralParser ctor should have rejected this");
1400 // Add the digit to the value in the appropriate radix. If adding in digits
1404 // Multiply by radix, did overflow occur on the multiply?
1443 assert(radix == 16 || radix == 10);
1465 if (alwaysFitsInto64Bits(radix, NumExpDigits)) {
1467 llvm::APInt ExpInt(/*numBits=*/64, ExpStr, /*radix=*/10);
1495 if (radix == 10)
1516 assert(C < radix && "NumericLiteralParser ctor should have rejected this");
1518 Val *= radix;
1523 // number of digits past the radix point.
1527 // For a radix of 16, we will be multiplying by 2 instead of 16.
1528 if (radix == 16) FractBaseShift *= 4;
1533 uint64_t Base = (radix == 16) ? 2 : 10;