Lines Matching defs:base
40 strtoint(const char *s_arg, uint64_t *out, uint32_t base, int sign)
55 if (s == NULL || base == 1 || base > MAX_BASE) {
81 if (base == 0) {
83 base = 10;
85 base = 16;
87 base = 8;
90 if (base == 16 && c == '0' && (s[1] == 'x' || s[1] == 'X'))
93 if ((val = CTOI(c)) >= base) {
101 multmax = (uint64_t)UINT64_MAX / (uint64_t)base;
104 if ((i = CTOI(c)) >= base) {
117 val *= base;
162 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,
271 if (strtoint(s, &val, base, 0) == -1)