Lines Matching refs:base
48 _FUNCNAME(const char *nptr, char **endptr, int base)
55 /* check base value */
56 if (base && (base < 2 || base > 36)) {
61 panic("%s: invalid base %d", __func__, base);
67 * If base is 0, allow 0x for hex and 0 for octal, else
68 * assume decimal; if base is already 16, allow 0x.
82 if ((base == 0 || base == 16) &&
86 base = 16;
88 if (base == 0)
89 base = (c == '0' ? 8 : 10);
94 cutoff = __UINT_MAX / (__UINT)base;
95 cutlim = (int)(__UINT_MAX % (__UINT)base);
103 if (i >= base)
118 acc *= (__UINT)base;