Lines Matching defs:Radix
517 unsigned APInt::getSufficientBitsNeeded(StringRef Str, uint8_t Radix) {
531 if (Radix == 2)
533 if (Radix == 8)
535 if (Radix == 16)
542 if (Radix == 10)
545 assert(Radix == 36);
2092 "Radix should be 2, 8, 10, 16, or 36!");
2138 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
2141 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 ||
2142 Radix == 36) &&
2143 "Radix should be 2, 8, 10, 16, or 36!");
2147 switch (Radix) {
2167 unsigned Grouping = (Radix == 8 || Radix == 10) ? 3 : 4;
2209 *--BufPtr = Digits[N % Radix];
2210 N /= Radix;
2238 if (Radix == 2 || Radix == 8 || Radix == 16) {
2240 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1));
2241 unsigned MaskAmt = Radix - 1;
2257 udivrem(Tmp, Radix, Tmp, Digit);
2258 assert(Digit < Radix && "divide failed");