Lines Matching refs:base
57 char **endp, unsigned int base)
64 cp = _parse_integer_fixup_radix(startp, &base);
67 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars);
85 * @base: The number base to use
89 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
91 return simple_strntoull(cp, INT_MAX, endp, base);
99 * @base: The number base to use
103 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
105 return simple_strtoull(cp, endp, base);
113 * @base: The number base to use
117 long simple_strtol(const char *cp, char **endp, unsigned int base)
120 return -simple_strtoul(cp + 1, endp, base);
122 return simple_strtoul(cp, endp, base);
127 unsigned int base)
136 return -simple_strntoull(cp + 1, max_chars - 1, endp, base);
138 return simple_strntoull(cp, max_chars, endp, base);
145 * @base: The number base to use
149 long long simple_strtoll(const char *cp, char **endp, unsigned int base)
151 return simple_strntoll(cp, INT_MAX, endp, base);
439 unsigned int base:8; /* number base, 8, 10 or 16 only */
455 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10);
481 if (spec.base == 16)
489 if (num < spec.base)
491 else if (spec.base != 10) { /* 8 or 16 */
492 int mask = spec.base - 1;
495 if (spec.base == 16)
501 } else { /* base 10 */
525 if (spec.base == 16 || !is_zero) {
530 if (spec.base == 16) {
576 spec.base = 16;
663 spec.base = 10;
726 spec.base = 16;
1016 .base = 16,
1022 .base = 10,
1027 .base = 10,
1034 .base = 10,
1052 .base = 16,
1058 .base = 16,
1064 .base = 16,
1205 spec = (struct printf_spec){ .flags = SMALL | ZEROPAD, .base = 16 };
2354 * @base: base of the number (octal, hex, ...)
2460 /* default base */
2461 spec->base = 10;
2481 spec->base = 8;
2489 spec->base = 16;
3270 unsigned int base;
3353 base = 10;
3437 base = 8;
3441 base = 16;
3444 base = 0;
3471 || (base == 16 && !isxdigit(digit))
3472 || (base == 10 && !isdigit(digit))
3473 || (base == 8 && (!isdigit(digit) || digit > '7'))
3474 || (base == 0 && !isdigit(digit)))
3480 &next, base);
3484 &next, base);