Lines Matching refs:base

63 static noinline unsigned long long simple_strntoull(const char *startp, size_t max_chars, char **endp, unsigned int base)
70 cp = _parse_integer_fixup_radix(startp, &base);
73 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars);
91 * @base: The number base to use
96 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
98 return simple_strntoull(cp, INT_MAX, endp, base);
106 * @base: The number base to use
110 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
112 return simple_strtoull(cp, endp, base);
120 * @base: The number base to use
124 long simple_strtol(const char *cp, char **endp, unsigned int base)
127 return -simple_strtoul(cp + 1, endp, base);
129 return simple_strtoul(cp, endp, base);
134 unsigned int base)
143 return -simple_strntoull(cp + 1, max_chars - 1, endp, base);
145 return simple_strntoull(cp, max_chars, endp, base);
152 * @base: The number base to use
156 long long simple_strtoll(const char *cp, char **endp, unsigned int base)
158 return simple_strntoll(cp, INT_MAX, endp, base);
447 unsigned int base:8; /* number base, 8, 10 or 16 only */
463 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10);
489 if (spec.base == 16)
497 if (num < spec.base)
499 else if (spec.base != 10) { /* 8 or 16 */
500 int mask = spec.base - 1;
503 if (spec.base == 16)
509 } else { /* base 10 */
533 if (spec.base == 16 || !is_zero) {
538 if (spec.base == 16) {
584 spec.base = 16;
671 spec.base = 10;
734 spec.base = 16;
1017 .base = 16,
1023 .base = 10,
1028 .base = 10,
1035 .base = 10,
1053 .base = 16,
1059 .base = 16,
1065 .base = 16,
1206 spec = (struct printf_spec){ .flags = SMALL | ZEROPAD, .base = 16 };
2525 * @base: base of the number (octal, hex, ...)
2631 /* default base */
2632 spec->base = 10;
2652 spec->base = 8;
2660 spec->base = 16;
3444 unsigned int base;
3527 base = 10;
3611 base = 8;
3615 base = 16;
3618 base = 0;
3649 || (base == 16 && !isxdigit(digit))
3650 || (base == 10 && !isdigit(digit))
3651 || (base == 8 && !isodigit(digit))
3652 || (base == 0 && !isdigit(digit)))
3658 &next, base);
3662 &next, base);