Home
last modified time | relevance | path

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

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dstrtoul.c135 register unsigned long acc; in strtoul_l() local
161 for (acc = 0, any = 0;; c = *s++) { in strtoul_l()
172 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoul_l()
176 acc *= base; in strtoul_l()
177 acc += c; in strtoul_l()
181 acc = ULONG_MAX; in strtoul_l()
184 acc = -acc; in strtoul_l()
187 return (acc); in strtoul_l()
Dstrtoull.c131 register unsigned long long acc; in _strtoull_l() local
157 for (acc = 0, any = 0;; c = *s++) { in _strtoull_l()
168 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in _strtoull_l()
172 acc *= base; in _strtoull_l()
173 acc += c; in _strtoull_l()
177 acc = ULLONG_MAX; in _strtoull_l()
180 acc = -acc; in _strtoull_l()
183 return (acc); in _strtoull_l()
Dstrtoll.c135 register unsigned long long acc; in _strtoll_l() local
182 for (acc = 0, any = 0;; c = *s++) { in _strtoll_l()
193 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in _strtoll_l()
197 acc *= base; in _strtoll_l()
198 acc += c; in _strtoll_l()
202 acc = neg ? LLONG_MIN : LLONG_MAX; in _strtoll_l()
205 acc = -acc; in _strtoll_l()
208 return (acc); in _strtoll_l()
Dstrtoumax.c63 uintmax_t acc; in strtoumax_l() local
90 acc = any = 0; in strtoumax_l()
107 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoumax_l()
111 acc *= base; in strtoumax_l()
112 acc += c; in strtoumax_l()
116 acc = UINTMAX_MAX; in strtoumax_l()
122 acc = -acc; in strtoumax_l()
125 return (acc); in strtoumax_l()
Dwcstol.c137 register unsigned long acc; in wcstol_l() local
184 for (acc = 0, any = 0;; c = *s++) { in wcstol_l()
195 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstol_l()
199 acc *= base; in wcstol_l()
200 acc += (int) c; in wcstol_l()
204 acc = neg ? LONG_MIN : LONG_MAX; in wcstol_l()
207 acc = -acc; in wcstol_l()
210 return (acc); in wcstol_l()
Dwcstoll.c136 register unsigned long long acc; in wcstoll_l() local
183 for (acc = 0, any = 0;; c = *s++) { in wcstoll_l()
194 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstoll_l()
198 acc *= base; in wcstoll_l()
199 acc += (int) c; in wcstoll_l()
203 acc = neg ? LLONG_MIN : LLONG_MAX; in wcstoll_l()
206 acc = -acc; in wcstoll_l()
209 return (acc); in wcstoll_l()
Dwcstoul.c137 register unsigned long acc; in wcstoul_l() local
163 for (acc = 0, any = 0;; c = *s++) { in wcstoul_l()
174 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstoul_l()
178 acc *= base; in wcstoul_l()
179 acc += (unsigned long) c; in wcstoul_l()
183 acc = ULONG_MAX; in wcstoul_l()
186 acc = -acc; in wcstoul_l()
189 return (acc); in wcstoul_l()
Dstrtol.c127 register unsigned long acc; in _strtol_l() local
183 for (acc = 0, any = 0;; c = *s++) { in _strtol_l()
194 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) { in _strtol_l()
198 acc *= base; in _strtol_l()
199 acc += c; in _strtol_l()
203 acc = neg ? LONG_MIN : LONG_MAX; in _strtol_l()
206 acc = -acc; in _strtol_l()
209 return (acc); in _strtol_l()
Dwcstoull.c148 register unsigned long long acc; in wcstoull_l() local
178 for (acc = 0, any = 0;; c = *s++) { in wcstoull_l()
189 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstoull_l()
193 acc *= base; in wcstoull_l()
194 acc += (unsigned long long) c; in wcstoull_l()
198 acc = ULLONG_MAX; in wcstoull_l()
201 acc = -acc; in wcstoull_l()
204 return (acc); in wcstoull_l()
Dstrtoimax.c63 uintmax_t acc = 0; in strtoimax_l() local
128 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoimax_l()
132 acc *= base; in strtoimax_l()
133 acc += c; in strtoimax_l()
137 acc = neg ? INTMAX_MIN : INTMAX_MAX; in strtoimax_l()
143 acc = -acc; in strtoimax_l()
146 return (acc); in strtoimax_l()
Dwcstoimax.c64 uintmax_t acc; in wcstoimax_l() local
91 acc = any = 0; in wcstoimax_l()
114 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstoimax_l()
118 acc *= base; in wcstoimax_l()
119 acc += c; in wcstoimax_l()
123 acc = neg ? INTMAX_MIN : INTMAX_MAX; in wcstoimax_l()
129 acc = -acc; in wcstoimax_l()
132 return (acc); in wcstoimax_l()
Dwcstoumax.c63 uintmax_t acc; in wcstoumax_l() local
90 acc = any = 0; in wcstoumax_l()
112 if (any < 0 || acc > cutoff || (acc == cutoff && (int) c > cutlim)) in wcstoumax_l()
116 acc *= base; in wcstoumax_l()
117 acc += (uintmax_t) c; in wcstoumax_l()
121 acc = UINTMAX_MAX; in wcstoumax_l()
127 acc = -acc; in wcstoumax_l()
130 return (acc); in wcstoumax_l()