Searched refs:digits (Results 1 - 16 of 16) sorted by relevance

/haiku/src/system/libroot/posix/musl/misc/
H A Da64l.c5 static const char digits[] = variable
13 const char *d = strchr(digits, *s);
15 x |= (uint32_t)(d-digits)<<e;
26 *p = digits[x&63];
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A D_itowa.h40 const wchar_t *digits = (upper_case local
49 *--bp = digits[value % Base]; \
58 *--bp = digits[value % base];
H A D_itoa.h41 const char *digits = (upper_case local
56 *--buflim = digits[value % Base]; \
65 *--buflim = digits[value % base];
H A D_itowa.c82 /* Lower-case digits. */
84 /* Upper-case digits. */
95 const wchar_t *digits = (upper_case local
118 *--bp = digits[work_lo & ((1ul << BITS) - 1)]; \
132 *--bp = digits[work_lo]; \
140 *--bp = digits[work_hi & ((1 << BITS) - 1)]; \
166 *--bp = digits[rem];
177 *--bp = digits[rem];
303 *--bp = digits[rem];
315 *--bp = digits[re
[all...]
H A D_itoa.c160 /* Lower-case digits. */
163 /* Upper-case digits. */
175 const char *digits = (upper_case local
198 *--buflim = digits[work_lo & ((1ul << BITS) - 1)]; \
212 *--buflim = digits[work_lo]; \
220 *--buflim = digits[work_hi & ((1 << BITS) - 1)]; \
247 *--buflim = digits[rem];
258 *--buflim = digits[rem];
384 *--buflim = digits[rem];
396 *--buflim = digits[re
[all...]
/haiku/src/system/libnetwork/netresolv/nameser/
H A Dns_ttl.c109 int ch, digits, dirty; local
113 digits = 0;
121 digits++;
124 if (digits == 0)
138 digits = 0;
141 if (digits > 0) {
H A Dns_name.c52 static const char digits[] = "0123456789"; variable
164 *dn++ = digits[c / 100];
165 *dn++ = digits[(c % 100) / 10];
166 *dn++ = digits[c % 10];
255 else if ((cp = strchr(digits, c)) != NULL) {
256 n = (int)(cp - digits) * 100;
258 (cp = strchr(digits, c)) == NULL) {
262 n += (int)(cp - digits) * 10;
264 (cp = strchr(digits, c)) == NULL) {
268 n += (int)(cp - digits);
[all...]
/haiku/src/system/libnetwork/netresolv/inet/
H A Dinet_net_pton.c76 static const char digits[] = "0123456789"; local
118 n = strchr(digits, ch) - digits;
147 n = strchr(digits, ch) - digits;
202 static const char digits[] = "0123456789"; local
212 pch = strchr(digits, ch);
217 val += (int)(pch - digits);
233 static const char digits[] = "0123456789"; local
244 pch = strchr(digits, c
283 int digits; local
[all...]
H A Dinet_cidr_pton.c93 static const char digits[] = "0123456789"; variable
106 n = strchr(digits, ch) - digits;
275 cp = strchr(digits, ch);
279 bits += (int)(cp - digits);
/haiku/src/apps/haikudepot/util/
H A DValidationUtils.cpp75 int32 digits = 0; local
80 digits++;
82 return digits;
/haiku/src/apps/icon-o-matic/generic/support/
H A Dsupport.cpp110 // find out how many digits remain
116 int32 digits = strlen(tmp); local
119 digits--;
124 if (digits > 0) {
126 for (int32 i = 0; i < digits; i++) {
/haiku/src/libs/mapm/
H A Dmapmcnst.c91 * added more constants with more digits
165 * the following constants have ~520 digits each, if needed
353 void m_apm_cpp_precision(int digits) argument
360 if (digits >= 2)
361 MM_cpp_min_precision = digits;
/haiku/src/system/kernel/lib/
H A Dkernel_vsprintf.cpp142 const char *digits = "0123456789abcdefghijklmnopqrstuvwxyz"; local
147 digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
175 tmp[i++] = digits[do_div(&num, base)];
193 outBuffer.PutCharacter(digits[33]);
213 It prints up to 3 fraction digits, and doesn't support any precision arguments.
281 /* min. # of digits for integers; max number of chars for from string */
/haiku/headers/posix/
H A Dstdlib.h71 extern char *ecvt(double value, int digits, int *_decimalPoint, int *_sign);
74 extern char *gcvt(double value, int digits, char *buffer);
/haiku/headers/libs/mapm/
H A Dm_apm.h387 /* This is the default number of digits to use for
389 It's the larger of my digits and cpp_min_precision.
397 /* This is the default number of digits to use for
399 It's the larger of my digits, his digits, and cpp_min_precision.
401 int digits(const MAPM &otherVal) const function in class:MAPM
493 digits of precision, or denominator digits of precision. */
495 {return a.divide(b,a.digits(b));}
500 MAPM divide(const MAPM &m) const {return divide(m,digits(
[all...]
/haiku/src/tests/kits/interface/layout/
H A DLayoutTest1.cpp1529 const char* digits = "0123456789"; local
1534 label.Append(digits[k % 10], 1);

Completed in 259 milliseconds