Lines Matching refs:base
49 _FUNCNAME(const char *nptr, char **endptr, int base)
56 /* check base value */
57 if (base && (base < 2 || base > 36)) {
65 panic("%s: invalid base %d", __func__, base);
71 * If base is 0, allow 0x for hex and 0 for octal, else
72 * assume decimal; if base is already 16, allow 0x.
86 if ((base == 0 || base == 16) &&
90 base = 16;
92 if (base == 0)
93 base = (c == '0' ? 8 : 10);
98 * base. An input number that is greater than this value, if
103 * [-2147483648..2147483647] and the input base is 10,
113 cutlim = (int)(cutoff % base);
114 cutoff /= base;
117 cutlim -= base;
129 if (i >= base)
145 acc *= base;
160 acc *= base;