Home
last modified time | relevance | path

Searched refs:acc (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/stdlib/
Dstrtol.c47 long acc, cutoff; in strtol() local
104 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtol()
116 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtol()
118 acc = LONG_MIN; in strtol()
122 acc *= base; in strtol()
123 acc -= c; in strtol()
126 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtol()
128 acc = LONG_MAX; in strtol()
132 acc *= base; in strtol()
133 acc += c; in strtol()
[all …]
Dstrtoul.c46 unsigned long acc, cutoff; in strtoul() local
76 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoul()
87 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoul()
89 acc = ULONG_MAX; in strtoul()
93 acc *= (unsigned long)base; in strtoul()
94 acc += c; in strtoul()
98 acc = -acc; in strtoul()
101 return (acc); in strtoul()
Dstrtoumax.c46 uintmax_t acc, cutoff; in strtoumax() local
89 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoumax()
100 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoumax()
102 acc = UINTMAX_MAX; in strtoumax()
106 acc *= (uintmax_t)base; in strtoumax()
107 acc += c; in strtoumax()
111 acc = -acc; in strtoumax()
114 return (acc); in strtoumax()
Dstrtoimax.c46 intmax_t acc, cutoff; in strtoimax() local
135 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoimax()
147 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtoimax()
149 acc = INTMAX_MIN; in strtoimax()
153 acc *= base; in strtoimax()
154 acc -= c; in strtoimax()
157 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoimax()
159 acc = INTMAX_MAX; in strtoimax()
163 acc *= base; in strtoimax()
164 acc += c; in strtoimax()
[all …]