| /netbsd/src/lib/libc/gdtoa/test/ |
| D | dtst.out | 6 dtoa returns sign = 0, decpt = 1, 3 digits: 10 dtoa returns sign = 0, decpt = 1, 17 digits: 14 dtoa returns sign = 0, decpt = 1, 17 digits: 21 dtoa returns sign = 0, decpt = 21, 3 digits: 25 dtoa returns sign = 0, decpt = 21, 17 digits: 29 dtoa returns sign = 0, decpt = 21, 17 digits: 36 dtoa returns sign = 0, decpt = -19, 3 digits: 40 dtoa returns sign = 0, decpt = -19, 17 digits: 44 dtoa returns sign = 0, decpt = -19, 17 digits: 51 dtoa returns sign = 0, decpt = 1, 9 digits: [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/libdecnumber/ |
| D | decNumber.c | 366 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 …]
|
| D | decPacked.c | 73 Int indigs=dn->digits; /* digits processed */ in decPackedFromNumber() 81 if (dn->digits>length*2-1 /* too long .. */ in decPackedFromNumber() 163 Int digits; /* digits count */ in decPackedToNumber() local 174 digits=(last-first)*2+1; /* calculate digits .. */ in decPackedToNumber() 175 if ((*first & 0xf0)==0) digits--; /* adjust for leading zero nibble */ in decPackedToNumber() 176 if (digits!=0) dn->digits=digits; /* count of actual digits [if 0, */ in decPackedToNumber() 182 if ((dn->digits-*scale-1)<-DECNUMMAXE) { /* underflow */ in decPackedToNumber() 189 || ((dn->digits-*scale-1)>DECNUMMAXE)) { /* overflow */ in decPackedToNumber() 193 if (digits==0) return dn; /* result was zero */ in decPackedToNumber() 205 digits--; in decPackedToNumber() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/libdecnumber/ |
| D | decNumber.c | 366 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 …]
|
| D | decPacked.c | 73 Int indigs=dn->digits; /* digits processed */ in decPackedFromNumber() 81 if (dn->digits>length*2-1 /* too long .. */ in decPackedFromNumber() 163 Int digits; /* digits count */ in decPackedToNumber() local 174 digits=(last-first)*2+1; /* calculate digits .. */ in decPackedToNumber() 175 if ((*first & 0xf0)==0) digits--; /* adjust for leading zero nibble */ in decPackedToNumber() 176 if (digits!=0) dn->digits=digits; /* count of actual digits [if 0, */ in decPackedToNumber() 182 if ((dn->digits-*scale-1)<-DECNUMMAXE) { /* underflow */ in decPackedToNumber() 189 || ((dn->digits-*scale-1)>DECNUMMAXE)) { /* overflow */ in decPackedToNumber() 193 if (digits==0) return dn; /* result was zero */ in decPackedToNumber() 205 digits--; in decPackedToNumber() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | format_tv.in | 1 # Three digits in, 2/6 digits out, rounding down. 12 # One digit in. Must not produce spurious digits or trailing nulls. 25 # Three digits in, 2/6 digits out, rounding up. 35 # Three digits in, 1/6 digits out, rounding down. 60 # Three digits in, 1/6 digits out, rounding up.
|
| D | format_tv.ref | 1 >> # Three digits in, 2/6 digits out, rounding down. 21 >> # One digit in. Must not produce spurious digits or trailing nulls. 44 >> # Three digits in, 2/6 digits out, rounding up. 61 >> # Three digits in, 1/6 digits out, rounding down. 105 >> # Three digits in, 1/6 digits out, rounding up.
|
| /netbsd/src/external/bsd/ntp/dist/libntp/ |
| D | hextolfp.c | 25 static const char *digits = "0123456789abcdefABCDEF"; in hextolfp() local 40 (ind = strchr(digits, *cp)) != NULL) { in hextolfp() 42 dec_i += ((ind - digits) > 15) in hextolfp() 43 ? (u_long)(ind - digits - 6) in hextolfp() 44 : (u_long)(ind - digits); in hextolfp() 55 (ind = strchr(digits, *cp)) != NULL) { in hextolfp() 57 dec_f += ((ind - digits) > 15) in hextolfp() 58 ? (u_long)(ind - digits - 6) in hextolfp() 59 : (u_long)(ind - digits); in hextolfp()
|
| D | atolfp.c | 43 static const char *digits = "0123456789"; in atolfp() local 71 while (*cp != '\0' && (ind = strchr(digits, *cp)) != NULL) { in atolfp() 73 dec_i += (u_long)(ind - digits); in atolfp() 82 && (ind = strchr(digits, *cp)) != NULL) { in atolfp() 85 dec_f += (u_long)(ind - digits); in atolfp()
|
| /netbsd/src/external/bsd/libbind/dist/inet/ |
| D | inet_net_pton.c | 66 static const char digits[] = "0123456789"; in inet_net_pton_ipv4() local 105 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4() 134 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4() 193 static const char digits[] = "0123456789"; in getbits() local 203 pch = strchr(digits, ch); in getbits() 208 val += (pch - digits); in getbits() 223 static const char digits[] = "0123456789"; in getv4() local 234 pch = strchr(digits, ch); in getv4() 239 val += (pch - digits); in getv4() 272 int digits; in inet_net_pton_ipv6() local [all …]
|
| D | inet_cidr_pton.c | 84 static const char digits[] = "0123456789"; variable 96 n = strchr(digits, ch) - digits; in inet_cidr_pton_ipv4() 265 cp = strchr(digits, ch); in getbits() 269 bits += cp - digits; in getbits()
|
| /netbsd/src/lib/libc/inet/ |
| D | inet_net_pton.c | 70 static const char digits[] = "0123456789"; in __weak_alias() local 112 n = strchr(digits, ch) - digits; in __weak_alias() 141 n = strchr(digits, ch) - digits; in __weak_alias() 196 static const char digits[] = "0123456789"; in getbits() local 206 pch = strchr(digits, ch); in getbits() 211 val += (int)(pch - digits); in getbits() 227 static const char digits[] = "0123456789"; in getv4() local 238 pch = strchr(digits, ch); in getv4() 243 val += (int)(pch - digits); in getv4() 277 int digits; in inet_net_pton_ipv6() local [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/libgcc/config/libbid/ |
| D | bid64_logb.c | 42 int exponent_x, bin_expon_cx, digits; local 57 digits = 16; 61 digits = estimate_decimal_digits[bin_expon_cx]; 62 if (coefficient_x >= power10_table_128[digits].w[0]) 63 digits++; 65 exponent_x = exponent_x - DECIMAL_EXPONENT_BIAS + digits - 1;
|
| D | bid128_logb.c | 33 int exponent_x, bin_expon_cx, digits; variable 47 digits = estimate_decimal_digits[bin_expon_cx]; 51 digits++; 54 exponent_x = exponent_x - DECIMAL_EXPONENT_BIAS_128 - 1 + digits;
|
| /netbsd/src/external/gpl3/gdb/dist/libdecnumber/dpd/ |
| D | decimal64.c | 104 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 …]
|
| /netbsd/src/external/gpl3/gcc/dist/libdecnumber/dpd/ |
| D | decimal64.c | 104 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 …]
|
| /netbsd/src/tests/lib/libutil/ |
| D | t_strpct.c | 46 size_t bufsiz, intmax_t num, intmax_t den, size_t digits, in check_strspct() argument 56 const char *have = strspct(buf + 1, bufsiz, num, den, digits); in check_strspct() 69 #define h_strspct(bufsiz, num, den, digits, want) \ argument 70 check_strspct(__FILE__, __LINE__, bufsiz, num, den, digits, want) 74 size_t bufsiz, uintmax_t num, uintmax_t den, size_t digits, in check_strpct() argument 84 const char *have = strpct(buf + 1, bufsiz, num, den, digits); in check_strpct() 97 #define h_strpct(bufsiz, num, den, digits, want) \ argument 98 check_strpct(__FILE__, __LINE__, bufsiz, num, den, digits, want)
|
| /netbsd/src/lib/libc/nameser/ |
| D | ns_ttl.c | 109 int ch, digits, dirty; in ns_parse_ttl() local 113 digits = 0; in ns_parse_ttl() 121 digits++; in ns_parse_ttl() 124 if (digits == 0) in ns_parse_ttl() 138 digits = 0; in ns_parse_ttl() 141 if (digits > 0) { in ns_parse_ttl()
|
| /netbsd/src/external/bsd/libbind/dist/nameser/ |
| D | ns_ttl.c | 101 int ch, digits, dirty; in ns_parse_ttl() local 105 digits = 0; in ns_parse_ttl() 113 digits++; in ns_parse_ttl() 116 if (digits == 0) in ns_parse_ttl() 130 digits = 0; in ns_parse_ttl() 133 if (digits > 0) { in ns_parse_ttl()
|
| /netbsd/src/external/bsd/pdisk/dist/ |
| D | dump.c | 131 void dump_partition_entry(partition_map *entry, int type_length, int name_length, int digits); 208 int digits; in dump_partition_map() local 225 digits = number_of_digits(get_max_base_or_length(map)); in dump_partition_map() 226 if (digits < 6) { in dump_partition_map() 227 digits = 6; in dump_partition_map() 244 digits, "length", digits, "base"); in dump_partition_map() 250 dump_partition_entry(entry, max_type_length, max_name_length, digits); in dump_partition_map() 256 dump_partition_entry(entry, max_type_length, max_name_length, digits); in dump_partition_map() 264 dump_partition_entry(partition_map *entry, int type_length, int name_length, int digits) in dump_partition_entry() argument 316 printf("%*"PRIu32" ", digits, p->dpme_pblocks); in dump_partition_entry() [all …]
|
| /netbsd/src/lib/libutil/ |
| D | strpct.c | 61 size_t digits) in strspct() argument 71 imax_abs(denominator), digits); in strspct() 118 size_t digits) in strpct() argument 135 for (size_t i = 0; i < 2 + digits; i++) { in strpct() 149 if (i == 1 && digits > 0) { in strpct()
|
| /netbsd/src/external/gpl3/gcc/dist/contrib/ |
| D | paranoia.cc | 298 const int digits = (fmt->p * fmt->log2_b + 3) / 4; in binop() local 302 real_to_hexadecimal (ab, &ai, sizeof(ab), digits, 0); in binop() 303 real_to_hexadecimal (bb, &bi, sizeof(bb), digits, 0); in binop() 304 real_to_hexadecimal (rb, &ri, sizeof(rb), digits, 0); in binop() 342 const int digits = (fmt->p * fmt->log2_b + 3) / 4; in unop() local 346 real_to_hexadecimal (ab, &ai, sizeof(ab), digits, 0); in unop() 347 real_to_hexadecimal (rb, &ri, sizeof(rb), digits, 0); in unop() 380 const int digits = (fmt->p * fmt->log2_b + 3) / 4; in cmp() local 383 real_to_hexadecimal (ab, &ai, sizeof(ab), digits, 0); in cmp() 384 real_to_hexadecimal (bb, &bi, sizeof(bb), digits, 0); in cmp() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| D | inet_ntop.c | 47 const char digits[] = "0123456789"; in inet_ntop_v4() local 62 *dst++ = digits[n / 100]; in inet_ntop_v4() 67 *dst++ = digits[n / 10]; in inet_ntop_v4() 71 *dst++ = digits[n]; in inet_ntop_v4()
|
| /netbsd/src/external/bsd/iscsi/dist/src/lib/ |
| D | strtoll.c | 42 static char *digits = "0123456789abcdefghijklmnopqrstuvwxyz"; variable 52 …for (ret = 0, cp = ptr ; *cp && (dig = strchr(digits, *cp)) != NULL && (d = (int)(dig - digits)) … in strtoll()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
| D | bn_mp_rand.c | 22 mp_rand (mp_int * a, int digits) in mp_rand() argument 28 if (digits <= 0) { in mp_rand() 41 while (--digits > 0) { in mp_rand()
|