Searched refs:acc (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | strtoimax.c | 45 intmax_t acc, cutoff; in strtoimax() local 114 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoimax() 126 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtoimax() 128 acc = INTMAX_MIN; in strtoimax() 132 acc *= base; in strtoimax() 133 acc -= c; in strtoimax() 136 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoimax() 138 acc = INTMAX_MAX; in strtoimax() 142 acc *= base; in strtoimax() 143 acc += c; in strtoimax() [all …]
|
D | strtol.c | 46 long acc, cutoff; in strtol() local 114 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtol() 126 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtol() 128 acc = LONG_MIN; in strtol() 132 acc *= base; in strtol() 133 acc -= c; in strtol() 136 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtol() 138 acc = LONG_MAX; in strtol() 142 acc *= base; in strtol() 143 acc += c; in strtol() [all …]
|
D | strtoll.c | 48 long long acc, cutoff; in strtoll() local 117 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoll() 129 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtoll() 131 acc = LLONG_MIN; in strtoll() 135 acc *= base; in strtoll() 136 acc -= c; in strtoll() 139 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoll() 141 acc = LLONG_MAX; in strtoll() 145 acc *= base; in strtoll() 146 acc += c; in strtoll() [all …]
|
D | strtoul.c | 46 unsigned long acc, cutoff; in strtoul() local 83 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoul() 94 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoul() 96 acc = ULONG_MAX; in strtoul() 100 acc *= (unsigned long)base; in strtoul() 101 acc += c; in strtoul() 105 acc = -acc; in strtoul() 108 return (acc); in strtoul()
|
D | strtoull.c | 48 unsigned long long acc, cutoff; in strtoull() local 85 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoull() 96 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoull() 98 acc = ULLONG_MAX; in strtoull() 102 acc *= (unsigned long long)base; in strtoull() 103 acc += c; in strtoull() 107 acc = -acc; in strtoull() 110 return (acc); in strtoull()
|
D | strtoumax.c | 45 uintmax_t acc, cutoff; in strtoumax() local 82 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoumax() 93 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoumax() 95 acc = UINTMAX_MAX; in strtoumax() 99 acc *= (uintmax_t)base; in strtoumax() 100 acc += c; in strtoumax() 104 acc = -acc; in strtoumax() 107 return (acc); in strtoumax()
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
D | _wcstol.h | 52 int_type acc, cutoff; in FUNCNAME() local 102 for (acc = 0, any = 0;; wc = (wchar_t) *s++) { in FUNCNAME() 111 if (acc < cutoff || (acc == cutoff && i > cutlim)) { in FUNCNAME() 113 acc = MIN_VALUE; in FUNCNAME() 117 acc *= base; in FUNCNAME() 118 acc -= i; in FUNCNAME() 121 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in FUNCNAME() 123 acc = MAX_VALUE; in FUNCNAME() 127 acc *= base; in FUNCNAME() 128 acc += i; in FUNCNAME() [all …]
|
D | _wcstoul.h | 51 uint_type acc, cutoff; in FUNCNAME() local 92 for (acc = 0, any = 0;; wc = (wchar_t) *s++) { in FUNCNAME() 100 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in FUNCNAME() 102 acc = MAX_VALUE; in FUNCNAME() 106 acc *= (uint_type)base; in FUNCNAME() 107 acc += i; in FUNCNAME() 111 acc = -acc; in FUNCNAME() 115 return (acc); in FUNCNAME()
|