Lines Matching refs:base
46 _FUNCNAME(const char *nptr, char **endptr, int base)
53 /* check base value */
54 if (base && (base < 2 || base > 36)) {
59 panic("%s: invalid base %d", __func__, base);
65 * If base is 0, allow 0x for hex and 0 for octal, else
66 * assume decimal; if base is already 16, allow 0x.
80 if ((base == 0 || base == 16) &&
84 base = 16;
86 if (base == 0)
87 base = (c == '0' ? 8 : 10);
92 cutoff = __UINT_MAX / (__UINT)base;
93 cutlim = (int)(__UINT_MAX % (__UINT)base);
101 if (i >= base)
116 acc *= (__UINT)base;