• Home
  • Raw
  • Download

Lines Matching refs:radix

169 static bool isDigit(int x, int radix) {  in isDigit()  argument
170 return (x >= '0' && x <= '9' && x < '0' + radix) in isDigit()
171 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) in isDigit()
172 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); in isDigit()
189 static bool IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument
190 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix()
194 static bool inline IsDecimalDigitForRadix(int c, int radix) { in IsDecimalDigitForRadix() argument
195 return '0' <= c && c <= '9' && (c - '0') < radix; in IsDecimalDigitForRadix()
205 static bool IsCharacterDigitForRadix(int c, int radix, char a_character) { in IsCharacterDigitForRadix() argument
206 return radix > 10 && c >= a_character && c < a_character + radix - 10; in IsCharacterDigitForRadix()
298 const int radix = (1 << radix_log_2); in RadixStringToIeee() local
305 if (Advance(current, separator, radix, end)) { in RadixStringToIeee()
313 if (IsDecimalDigitForRadix(**current, radix)) { in RadixStringToIeee()
316 } else if (IsCharacterDigitForRadix(**current, radix, 'a')) { in RadixStringToIeee()
319 } else if (IsCharacterDigitForRadix(**current, radix, 'A')) { in RadixStringToIeee()
324 Advance(current, separator, radix, end); in RadixStringToIeee()
337 number = number * radix + digit; in RadixStringToIeee()
355 if (Advance(current, separator, radix, end)) break; in RadixStringToIeee()
359 Advance(current, separator, radix, end); in RadixStringToIeee()
363 if (!isDigit(**current, radix)) break; in RadixStringToIeee()
392 if (Advance(current, separator, radix, end)) break; in RadixStringToIeee()
402 Advance(current, separator, radix, end); in RadixStringToIeee()
406 Advance(current, separator, radix, end); in RadixStringToIeee()
410 Advance(current, separator, radix, end); in RadixStringToIeee()
420 if (Advance(current, separator, radix, end)) break; in RadixStringToIeee()