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

12345

/freebsd-11-stable/contrib/ntp/libntp/
H A Dhextolfp.c23 static const char *digits = "0123456789abcdefABCDEF"; local
38 (ind = strchr(digits, *cp)) != NULL) {
40 dec_i += ((ind - digits) > 15)
41 ? (u_long)(ind - digits - 6)
42 : (u_long)(ind - digits);
53 (ind = strchr(digits, *cp)) != NULL) {
55 dec_f += ((ind - digits) > 15)
56 ? (u_long)(ind - digits - 6)
57 : (u_long)(ind - digits);
H A Datolfp.c41 static const char *digits = "0123456789"; local
53 * [spaces][-|+][digits][.][digits][spaces|\n|\0]
69 while (*cp != '\0' && (ind = strchr(digits, *cp)) != NULL) {
71 dec_i += (u_long)(ind - digits);
80 && (ind = strchr(digits, *cp)) != NULL) {
83 dec_f += (u_long)(ind - digits);
/freebsd-11-stable/contrib/top/
H A Dutils.h17 int digits();
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlcompat.c27 int digits; local
53 digits = *cp - '0';
55 digits = *cp - 'a' + 10;
57 digits = *cp - 'A' + 10;
61 if (digits >= base) {
64 value = (value * base) + digits;
/freebsd-11-stable/contrib/groff/src/libs/libgroff/
H A Dstrtol.c55 static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; local
81 p = strchr(digits, (ISASCII((unsigned char)*str)
85 if (p == 0 || (val = (p - digits)) >= base) {
103 p = strchr(digits, (ISASCII((unsigned char)*str)
108 n = p - digits;
/freebsd-11-stable/lib/libc/inet/
H A Dinet_net_pton.c66 static const char digits[] = "0123456789"; local
105 n = strchr(digits, ch) - digits;
134 n = strchr(digits, ch) - digits;
193 static const char digits[] = "0123456789"; local
203 pch = strchr(digits, ch);
208 val += (pch - digits);
223 static const char digits[] = "0123456789"; local
234 pch = strchr(digits, c
272 int digits; local
[all...]
/freebsd-11-stable/contrib/gcclibs/libdecnumber/
H A DdecUtility.c50 /* the units array is the ceiling of digits/DECDPUN, where digits is */
51 /* the maximum number of digits in any of the formats for which this */
60 /* dn is the source number (assumed valid, max DECMAX754 digits) */
63 /* shift is the number of 0 digits to add on the right (normally 0) */
80 Int digits = dn->digits; /* digit countdown */ local
92 /* shift the units array to the left by pad digits and copy */
99 source = dn->lsu + D2U (digits) - 1; /* where msu comes from */
100 first = uar + D2U (digits
[all...]
H A DdecNumber.c57 /* precision (up to 999,999,999 digits) and arbitrary exponent */
137 /* 6. The digits count is allowed to rise to a multiple of DECDPUN */
139 /* accounting of digits is not needed. The correct digits value */
141 /* This must be called before any rounding if the number of digits */
145 /* numbers up to four digits, using appropriate constants. This */
313 /* string must be at least dn->digits+14 characters long */
339 /* (set.digits), determining the maximum and minimum */
360 Int d = 0; /* count of digits found in decimal part */
395 d++; /* count of real digits */
4448 decShiftToMost(Unit * uar, Int digits, Int shift) argument
5566 Int digits = len * DECDPUN; /* maximum possible digits */ local
5770 Int ae, d, digits; /* .. */ local
[all...]
H A DdecContext.c56 context->digits = 9; /* 9 digits */
72 context->digits = 7; /* digits */
83 context->digits = 16; /* digits */
94 context->digits = 34; /* digits */
/freebsd-11-stable/lib/libc/nameser/
H A Dns_ttl.c101 int ch, digits, dirty; local
105 digits = 0;
113 digits++;
116 if (digits == 0)
130 digits = 0;
133 if (digits > 0) {
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dinet_ntop.c45 const char digits[] = "0123456789"; local
60 *dst++ = digits[n / 100];
65 *dst++ = digits[n / 10];
69 *dst++ = digits[n];
/freebsd-11-stable/usr.bin/hexdump/
H A Dodsyntax.c313 int digits; local
341 digits = FLT_DIG;
344 digits = DBL_DIG;
348 digits = LDBL_DIG;
355 16UL / (u_long)isize, (u_long)isize, digits + 8, digits);
369 int digits; local
405 * Calculate the maximum number of digits we need to
411 digits = 0;
413 digits
[all...]
/freebsd-11-stable/contrib/libstdc++/src/
H A Dlimits.cc42 const int __numeric_limits_base::digits; member in class:__numeric_limits_base
66 const int numeric_limits<bool>::digits; member in class:numeric_limits
90 const int numeric_limits<char>::digits; member in class:numeric_limits
114 const int numeric_limits<signed char>::digits; member in class:numeric_limits
138 const int numeric_limits<unsigned char>::digits; member in class:numeric_limits
164 const int numeric_limits<wchar_t>::digits; member in class:numeric_limits
189 const int numeric_limits<short>::digits; member in class:numeric_limits
213 const int numeric_limits<unsigned short>::digits; member in class:numeric_limits
237 const int numeric_limits<int>::digits; member in class:numeric_limits
261 const int numeric_limits<unsigned int>::digits; member in class:numeric_limits
285 const int numeric_limits<long>::digits; member in class:numeric_limits
309 const int numeric_limits<unsigned long>::digits; member in class:numeric_limits
333 const int numeric_limits<long long>::digits; member in class:numeric_limits
356 const int numeric_limits<unsigned long long>::digits; member in class:numeric_limits
380 const int numeric_limits<float>::digits; member in class:numeric_limits
404 const int numeric_limits<double>::digits; member in class:numeric_limits
428 const int numeric_limits<long double>::digits; member in class:numeric_limits
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dhex.c84 int digits; /*%< Number of buffered hex digits */ member in struct:__anon4820
91 ctx->digits = 0;
102 ctx->val[ctx->digits++] = s - hex;
103 if (ctx->digits == 2) {
114 ctx->digits = 0;
123 if (ctx->digits != 0)
H A Dinet_pton.c84 static const char digits[] = "0123456789"; local
94 if ((pch = strchr(digits, ch)) != NULL) {
95 size_t newv = *tp * 10 + (pch - digits);
/freebsd-11-stable/stand/libsa/
H A Dether.c132 static char digits[] = "0123456789abcdef"; variable
141 *cp++ = digits[*ap >> 4];
142 *cp++ = digits[*ap++ & 0xf];
/freebsd-11-stable/contrib/ntp/scripts/stats/
H A Dloop.S1 options(digits=4)
/freebsd-11-stable/contrib/ldns/compat/
H A Dinet_pton.c98 static const char digits[] = "0123456789"; local
108 if ((pch = strchr(digits, ch)) != NULL) {
109 uint32_t new = *tp * 10 + (pch - digits);
/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dinet_pton.c108 static const char digits[] = "0123456789"; local
118 if ((pch = strchr(digits, ch)) != NULL) {
119 unsigned int new = *tp * 10 + (unsigned int)(pch - digits);
/freebsd-11-stable/contrib/unbound/compat/
H A Dinet_pton.c98 static const char digits[] = "0123456789"; local
108 if ((pch = strchr(digits, ch)) != NULL) {
109 uint32_t new = *tp * 10 + (pch - digits);
/freebsd-11-stable/sys/libkern/
H A Dinet_pton.c80 static const char digits[] = "0123456789"; local
91 if ((pch = strchr(digits, ch)) != NULL) {
92 u_int new = *tp * 10 + (pch - digits);
/freebsd-11-stable/contrib/libstdc++/include/std/
H A Dstd_limits.h146 // The fraction 643/2136 approximates log10(2) to 7 significant digits.
199 /** The number of @c radix digits that be represented without change: for
201 floating types, the number of @c radix digits in the mantissa. */
202 static const int digits = 0; member in struct:__numeric_limits_base
203 /** The number of base 10 digits that can be represented without change. */
326 static const int digits = 1; member in struct:numeric_limits
380 static const int digits = __glibcxx_digits (char); member in struct:numeric_limits
431 static const int digits = __glibcxx_digits (signed char); member in struct:numeric_limits
482 static const int digits = __glibcxx_digits (unsigned char); member in struct:numeric_limits
533 static const int digits member in struct:numeric_limits
584 static const int digits = __glibcxx_digits (short); member in struct:numeric_limits
635 static const int digits = __glibcxx_digits (unsigned short); member in struct:numeric_limits
686 static const int digits = __glibcxx_digits (int); member in struct:numeric_limits
737 static const int digits = __glibcxx_digits (unsigned int); member in struct:numeric_limits
788 static const int digits = __glibcxx_digits (long); member in struct:numeric_limits
839 static const int digits = __glibcxx_digits (unsigned long); member in struct:numeric_limits
890 static const int digits = __glibcxx_digits (long long); member in struct:numeric_limits
941 static const int digits = __glibcxx_digits (unsigned long long); member in struct:numeric_limits
992 static const int digits = __FLT_MANT_DIG__; member in struct:numeric_limits
1049 static const int digits = __DBL_MANT_DIG__; member in struct:numeric_limits
1106 static const int digits = __LDBL_MANT_DIG__; member in struct:numeric_limits
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Daddrtostr.c65 const char digits[] = "0123456789"; local
78 *dst++ = digits[n / 100];
83 *dst++ = digits[n / 10];
87 *dst++ = digits[n];
/freebsd-11-stable/contrib/gcc/
H A Dc-cppbuiltin.c86 least 6 significant digits for correct results. Using the fraction
107 /* The number of radix digits, p, in the floating-point significand. */
111 /* The number of decimal digits, q, such that any floating-point number
112 with q decimal digits can be rounded into a floating-point number with
113 p radix b digits and back again without change to the q decimal digits,
164 first 20 digits or so of log10(b).
173 /* The number of decimal digits, n, such that any floating-point number
174 can be rounded to n decimal digits and back again without change to
279 int digits; local
691 builtin_define_with_hex_fp_value(const char *macro, tree type ATTRIBUTE_UNUSED, int digits, const char *hex_str, const char *fp_suffix, const char *fp_cast) argument
[all...]
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_printf.c65 static const char digits[16] = "0123456789abcdef"; local
120 *s++ = digits[u % r];

Completed in 198 milliseconds

12345