Lines Matching defs:base
42 strtoint(const char *s_arg, uint64_t *out, uint32_t base, int sign)
57 if (s == NULL || base == 1 || base > MAX_BASE) {
83 if (base == 0) {
85 base = 10;
87 base = 16;
89 base = 8;
92 if (base == 16 && c == '0' && (s[1] == 'x' || s[1] == 'X'))
95 if ((val = CTOI(c)) >= base) {
103 multmax = (uint64_t)UINT64_MAX / (uint64_t)base;
106 if ((i = CTOI(c)) >= base) {
119 val *= base;
164 uu_strtoint(const char *s, void *v, size_t sz, int base,
199 if (strtoint(s, &val_u, base, 1) == -1)
235 uu_strtouint(const char *s, void *v, size_t sz, int base,
269 if (strtoint(s, &val, base, 0) == -1)