Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 168) sorted by relevance

1234567

/dflybsd-src/contrib/gcc-8.0/libdecnumber/
H A DdecNumber.c366 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32()
386 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32()
399 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32()
421 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32()
435 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32()
580 if (d>set->digits-1) { in decNumberFromString()
584 if (d>set->digits) break; in decNumberFromString()
651 if (d<=set->digits) res=dn->lsu; /* fits into supplied decNumber */ in decNumberFromString()
694 dn->digits=d; in decNumberFromString()
697 if (d>set->digits) { in decNumberFromString()
[all …]
/dflybsd-src/contrib/gdb-7/libdecnumber/
H A DdecNumber.c366 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32()
386 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32()
399 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32()
421 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32()
435 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32()
580 if (d>set->digits-1) { in decNumberFromString()
584 if (d>set->digits) break; in decNumberFromString()
651 if (d<=set->digits) res=dn->lsu; /* fits into supplied decNumber */ in decNumberFromString()
694 dn->digits=d; in decNumberFromString()
697 if (d>set->digits) { in decNumberFromString()
[all …]
/dflybsd-src/contrib/gcc-4.7/libdecnumber/
H A DdecNumber.c366 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32()
386 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32()
399 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32()
421 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32()
435 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32()
580 if (d>set->digits-1) { in decNumberFromString()
584 if (d>set->digits) break; in decNumberFromString()
651 if (d<=set->digits) res=dn->lsu; /* fits into supplied decNumber */ in decNumberFromString()
694 dn->digits=d; in decNumberFromString()
697 if (d>set->digits) { in decNumberFromString()
[all …]
/dflybsd-src/usr.bin/hexdump/
H A Dodsyntax.c310 int digits, width; in odformatfp() local
338 digits = FLT_DIG; in odformatfp()
339 width = digits + 7; /* -x.*e[+-]xx */ in odformatfp()
342 digits = DBL_DIG; in odformatfp()
343 width = digits + 8; /* -x.*e[+-]xxx */ in odformatfp()
347 digits = LDBL_DIG; in odformatfp()
348 width = digits + 9; /* -x.*e[+-]xxxx */ in odformatfp()
356 16UL / (u_long)isize, (u_long)isize, width, digits); in odformatfp()
370 int digits; in odformatint() local
412 digits = 0; in odformatint()
[all …]
/dflybsd-src/lib/libc/inet/
H A Dinet_net_pton.c56 static const char digits[] = "0123456789"; in inet_net_pton_ipv4() local
95 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
124 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
183 static const char digits[] = "0123456789"; in getbits() local
193 pch = strchr(digits, ch); in getbits()
198 val += (pch - digits); in getbits()
213 static const char digits[] = "0123456789"; in getv4() local
224 pch = strchr(digits, ch); in getv4()
229 val += (pch - digits); in getv4()
262 int digits; in inet_net_pton_ipv6() local
[all …]
H A Dinet_cidr_pton.c74 static const char digits[] = "0123456789"; variable
86 n = strchr(digits, ch) - digits; in inet_cidr_pton_ipv4()
255 cp = strchr(digits, ch); in getbits()
259 bits += cp - digits; in getbits()
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/src/c++11/
H A Dlimits.cc42 const int __numeric_limits_base::digits; member in std::__numeric_limits_base
67 const int numeric_limits<bool>::digits; member in std::numeric_limits<bool>
92 const int numeric_limits<char>::digits; member in std::numeric_limits<char>
117 const int numeric_limits<signed char>::digits; member in std::numeric_limits<signed char>
142 const int numeric_limits<unsigned char>::digits; member in std::numeric_limits<unsigned char>
169 const int numeric_limits<wchar_t>::digits; member in std::numeric_limits<wchar_t>
195 const int numeric_limits<short>::digits; member in std::numeric_limits<short>
220 const int numeric_limits<unsigned short>::digits; member in std::numeric_limits<unsigned short>
245 const int numeric_limits<int>::digits; member in std::numeric_limits<int>
270 const int numeric_limits<unsigned int>::digits; member in std::numeric_limits<unsigned int>
[all …]
/dflybsd-src/contrib/gcc-8.0/libdecnumber/dpd/
H A Ddecimal64.c104 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal64FromNumber()
105 if (dn->digits>DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber()
120 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal64FromNumber()
121 && (dn->digits<DECIMAL64_Pmax)) { /* coefficient fits */ in decimal64FromNumber()
161 Int d=dn->digits; in decimal64FromNumber()
166 if (dn->digits>6) { in decimal64FromNumber()
618 Int digits=dn->digits; /* digit countdown */ in decDigitsToDPD() local
637 source=dn->lsu+D2U(digits)-1; /* where msu comes from */ in decDigitsToDPD()
638 target=uar+D2U(digits)-1+D2U(shift);/* where upper part of first cut goes */ in decDigitsToDPD()
644 first=uar+D2U(digits+shift)-1; /* where msu will end up */ in decDigitsToDPD()
[all …]
H A Ddecimal32.c96 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber()
97 if (dn->digits>DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber()
112 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal32FromNumber()
113 && (dn->digits<DECIMAL32_Pmax)) { /* coefficient fits */ in decimal32FromNumber()
152 if (dn->digits>3) targ|=(uInt)(BIN2DPD[dn->lsu[1]])<<10; in decimal32FromNumber()
153 msd=(dn->digits==7 ? dn->lsu[2] : 0); in decimal32FromNumber()
/dflybsd-src/contrib/gdb-7/libdecnumber/dpd/
H A Ddecimal64.c104 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal64FromNumber()
105 if (dn->digits>DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber()
120 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal64FromNumber()
121 && (dn->digits<DECIMAL64_Pmax)) { /* coefficient fits */ in decimal64FromNumber()
161 Int d=dn->digits; in decimal64FromNumber()
166 if (dn->digits>6) { in decimal64FromNumber()
618 Int digits=dn->digits; /* digit countdown */ in decDigitsToDPD() local
637 source=dn->lsu+D2U(digits)-1; /* where msu comes from */ in decDigitsToDPD()
638 target=uar+D2U(digits)-1+D2U(shift);/* where upper part of first cut goes */ in decDigitsToDPD()
644 first=uar+D2U(digits+shift)-1; /* where msu will end up */ in decDigitsToDPD()
[all …]
H A Ddecimal32.c96 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber()
97 if (dn->digits>DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber()
112 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal32FromNumber()
113 && (dn->digits<DECIMAL32_Pmax)) { /* coefficient fits */ in decimal32FromNumber()
152 if (dn->digits>3) targ|=(uInt)(BIN2DPD[dn->lsu[1]])<<10; in decimal32FromNumber()
153 msd=(dn->digits==7 ? dn->lsu[2] : 0); in decimal32FromNumber()
/dflybsd-src/contrib/gcc-4.7/libdecnumber/dpd/
H A Ddecimal64.c104 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal64FromNumber()
105 if (dn->digits>DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber()
120 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal64FromNumber()
121 && (dn->digits<DECIMAL64_Pmax)) { /* coefficient fits */ in decimal64FromNumber()
161 Int d=dn->digits; in decimal64FromNumber()
166 if (dn->digits>6) { in decimal64FromNumber()
618 Int digits=dn->digits; /* digit countdown */ in decDigitsToDPD() local
637 source=dn->lsu+D2U(digits)-1; /* where msu comes from */ in decDigitsToDPD()
638 target=uar+D2U(digits)-1+D2U(shift);/* where upper part of first cut goes */ in decDigitsToDPD()
644 first=uar+D2U(digits+shift)-1; /* where msu will end up */ in decDigitsToDPD()
[all …]
H A Ddecimal32.c96 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber()
97 if (dn->digits>DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber()
112 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal32FromNumber()
113 && (dn->digits<DECIMAL32_Pmax)) { /* coefficient fits */ in decimal32FromNumber()
152 if (dn->digits>3) targ|=(uInt)(BIN2DPD[dn->lsu[1]])<<10; in decimal32FromNumber()
153 msd=(dn->digits==7 ? dn->lsu[2] : 0); in decimal32FromNumber()
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/src/c++11/
H A Dlimits.cc41 const int __numeric_limits_base::digits; member in std::__numeric_limits_base
66 const int numeric_limits<bool>::digits; member in std::numeric_limits<bool>
91 const int numeric_limits<char>::digits; member in std::numeric_limits<char>
116 const int numeric_limits<signed char>::digits; member in std::numeric_limits<signed char>
141 const int numeric_limits<unsigned char>::digits; member in std::numeric_limits<unsigned char>
168 const int numeric_limits<wchar_t>::digits; member in std::numeric_limits<wchar_t>
194 const int numeric_limits<short>::digits; member in std::numeric_limits<short>
219 const int numeric_limits<unsigned short>::digits; member in std::numeric_limits<unsigned short>
244 const int numeric_limits<int>::digits; member in std::numeric_limits<int>
269 const int numeric_limits<unsigned int>::digits; member in std::numeric_limits<unsigned int>
[all …]
/dflybsd-src/lib/libc/nameser/
H A Dns_ttl.c97 int ch, digits, dirty; in ns_parse_ttl() local
101 digits = 0; in ns_parse_ttl()
109 digits++; in ns_parse_ttl()
112 if (digits == 0) in ns_parse_ttl()
126 digits = 0; in ns_parse_ttl()
129 if (digits > 0) { in ns_parse_ttl()
H A Dns_name.c47 static const char digits[] = "0123456789"; variable
159 *dn++ = digits[c / 100]; in ns_name_ntop()
160 *dn++ = digits[(c % 100) / 10]; in ns_name_ntop()
161 *dn++ = digits[c % 10]; in ns_name_ntop()
234 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton()
235 n = (cp - digits) * 100; in ns_name_pton()
237 (cp = strchr(digits, c)) == NULL) { in ns_name_pton()
241 n += (cp - digits) * 10; in ns_name_pton()
243 (cp = strchr(digits, c)) == NULL) { in ns_name_pton()
247 n += (cp - digits); in ns_name_pton()
/dflybsd-src/contrib/gcc-4.7/gcc/c-family/
H A Dc-cppbuiltin.c319 int digits; in builtin_define_decimal_float_constants() local
344 for (digits = fmt->p; digits; digits--) in builtin_define_decimal_float_constants()
347 if (digits == fmt->p) in builtin_define_decimal_float_constants()
365 for (digits = fmt->p; digits > 1; digits--) in builtin_define_decimal_float_constants()
368 if (digits == fmt->p) in builtin_define_decimal_float_constants()
1032 int digits; member
1052 lazy_hex_fp_values[idx].digits, 0, in lazy_hex_fp_value()
1071 tree type, int digits, in builtin_define_with_hex_fp_value() argument
1094 lazy_hex_fp_values[lazy_hex_fp_value_count].digits = digits; in builtin_define_with_hex_fp_value()
1115 real_to_decimal_for_mode (dec_str, &real, sizeof (dec_str), digits, 0, in builtin_define_with_hex_fp_value()
/dflybsd-src/usr.bin/dc/
H A Dinout.c266 get_digit(u_long num, int digits, u_int base) in get_digit() argument
275 if (asprintf(&p, "%0*lu", digits, num) == -1) in get_digit()
285 int digits; in printnumber() local
302 digits = 1; in printnumber()
304 digits = snprintf(buf, sizeof(buf), "%u", base-1); in printnumber()
312 stack_pushstring(&stack, get_digit(rem, digits, base)); in printnumber()
351 p = get_digit(rem, digits, base); in printnumber()
/dflybsd-src/gnu/usr.bin/rcs/lib/
H A Dpartime.c291 parse_fixed (s, digits, res) char const *s; int digits, *res; in parse_fixed() argument
299 char const *lim = s + digits;
311 parse_ranged (s, digits, lo, hi, res) char const *s; int digits, lo, hi, *res; in parse_ranged() argument
319 s = parse_fixed (s, digits, res);
324 parse_decimal (s, digits, lo, hi, resolution, res, fres) in parse_decimal() argument
326 int digits, lo, hi, resolution, *res, *fres;
336 s = parse_fixed (s, digits, res);
/dflybsd-src/contrib/tcpdump/
H A Daddrtostr.c65 const char digits[] = "0123456789"; in addrtostr() local
78 *dst++ = digits[n / 100]; in addrtostr()
83 *dst++ = digits[n / 10]; in addrtostr()
87 *dst++ = digits[n]; in addrtostr()
/dflybsd-src/stand/lib/
H A Dether.c123 static char digits[] = "0123456789abcdef"; variable
132 *cp++ = digits[*ap >> 4]; in ether_sprintf()
133 *cp++ = digits[*ap++ & 0xf]; in ether_sprintf()
/dflybsd-src/usr.bin/localedef/
H A Dcharmap.c288 static const char *digits = "0123456789"; in add_charmap_range() local
293 if (((si = strcspn(s, digits)) == 0) || (si == ls) || in add_charmap_range()
295 ((int)strspn(s + si, digits) != (ls - si)) || in add_charmap_range()
296 ((int)strspn(e + si, digits) != (le - si)) || in add_charmap_range()
/dflybsd-src/contrib/mpfr/src/
H A Dget_d64.c369 long digits = 16 - (-382 - e); in mpfr_get_decimal64() local
371 mpfr_get_str (s, &e2, 10, digits, src, rnd_mode); in mpfr_get_decimal64()
374 s[negative + digits] = 'E'; in mpfr_get_decimal64()
375 sprintf (s + negative + digits + 1, "%ld", in mpfr_get_decimal64()
376 (long int)e2 - digits); in mpfr_get_decimal64()
/dflybsd-src/contrib/pam_passwdqc/
H A Dpasswdqc_check.c95 int digits, lowers, uppers, others, unknowns; in is_simple() local
99 digits = lowers = uppers = others = unknowns = 0; in is_simple()
107 digits++; in is_simple()
142 if (digits && isascii(c) && isdigit(c)) in is_simple()
143 digits--; in is_simple()
148 if (digits) in is_simple()
156 if (unknowns && classes <= 1 && (!classes || digits || words >= 2)) in is_simple()
/dflybsd-src/contrib/gcc-8.0/gcc/c-family/
H A Dc-cppbuiltin.c325 int digits; in builtin_define_decimal_float_constants() local
350 for (digits = fmt->p; digits; digits--) in builtin_define_decimal_float_constants()
353 if (digits == fmt->p) in builtin_define_decimal_float_constants()
371 for (digits = fmt->p; digits > 1; digits--) in builtin_define_decimal_float_constants()
374 if (digits == fmt->p) in builtin_define_decimal_float_constants()
1575 int digits; member
1602 lazy_hex_fp_values[idx].digits, 0, in lazy_hex_fp_value()
1621 tree type, int digits, in builtin_define_with_hex_fp_value() argument
1644 lazy_hex_fp_values[lazy_hex_fp_value_count].digits = digits; in builtin_define_with_hex_fp_value()
1665 real_to_decimal_for_mode (dec_str, &real, sizeof (dec_str), digits, 0, in builtin_define_with_hex_fp_value()

1234567