Lines Matching refs:base
370 grub_strtoul (const char *str, char **end, int base)
374 num = grub_strtoull (str, end, base);
385 grub_strtoull (const char *str, char **end, int base)
394 /* Guess the base, if not specified. The prefix `0x' means 16, and
400 if (base == 0 || base == 16)
402 base = 16;
406 else if (base == 0 && str[1] >= '0' && str[1] <= '7')
407 base = 8;
410 if (base == 0)
411 base = 10;
421 if (digit >= (unsigned long) base)
428 if (num > grub_divmod64 (~0ULL - digit, base, 0))
434 num = num * base + digit;
610 unsigned base = (c == 'x') ? 16 : 10;
621 if (base == 16)