/titanic_41/usr/src/lib/libc/port/fp/ |
H A D | econvert.c | 41 __infnanstring(enum fp_class_type cl, int ndigits, char *buf) in __infnanstring() argument 44 if (ndigits < 8) in __infnanstring() 56 econvert(double arg, int ndigits, int *decpt, int *sign, char *buf) in econvert() argument 71 if (ndigits <= 0) in econvert() 72 ndigits = 1; in econvert() 73 else if (ndigits >= DECIMAL_STRING_LENGTH) in econvert() 74 ndigits = DECIMAL_STRING_LENGTH - 1; in econvert() 75 dm.ndigits = ndigits; /* Number of significant digits. */ in econvert() 81 *decpt = dr.exponent + ndigits; in econvert() 82 for (i = 0; i < ndigits; i++) in econvert() [all …]
|
H A D | fconvert.c | 35 fconvert(double arg, int ndigits, int *decpt, int *sign, char *buf) in fconvert() argument 50 if (ndigits <= -DECIMAL_STRING_LENGTH) in fconvert() 51 ndigits = -DECIMAL_STRING_LENGTH + 1; in fconvert() 52 else if (ndigits >= DECIMAL_STRING_LENGTH) in fconvert() 53 ndigits = DECIMAL_STRING_LENGTH - 1; in fconvert() 54 dm.ndigits = ndigits; /* Number of digits after point. */ in fconvert() 60 *decpt = dr.exponent + dr.ndigits; in fconvert() 61 for (i = 0; i < dr.ndigits; i++) in fconvert() 67 if (ndigits > 0 && dr.exponent > -ndigits) { in fconvert() 68 while (i < dr.ndigits + dr.exponent + ndigits) in fconvert() [all …]
|
H A D | gconvert.c | 36 __k_gconvert(int ndigits, decimal_record *pd, int trailing, char *buf) in __k_gconvert() argument 50 for (i = 0; i < ndigits - 1; i++) in __k_gconvert() 57 if ((pd->exponent > 0) || (pd->exponent < -(ndigits + 3))) { in __k_gconvert() 93 if (pd->exponent >= (1 - ndigits)) { /* x.xxx */ in __k_gconvert() 94 for (i = 0; i < (ndigits + pd->exponent); ) in __k_gconvert() 99 for (; i < ndigits; ) in __k_gconvert() 105 for (i = 0; i < -(pd->exponent + ndigits); i++) in __k_gconvert() 122 __infnanstring(pd->fpclass, ndigits, p); in __k_gconvert() 128 gconvert(double number, int ndigits, int trailing, char *buf) in gconvert() argument 142 if (ndigits < 0) in gconvert() [all …]
|
H A D | aconvert.c | 56 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) in __aconvert() argument 74 fp_infinity : fp_quiet, ndigits, buf); in __aconvert() 82 for (i = 0; i < ndigits; i++) in __aconvert() 84 buf[ndigits] = '\0'; in __aconvert() 104 if (ndigits < 14) { in __aconvert() 110 c.i[0] = (0x43700000 | (s << 31)) - (ndigits << 22); in __aconvert() 122 for (i = 1; i < ndigits && i < 6; i++) { in __aconvert() 127 for (; i < ndigits && i < 14; i++) { in __aconvert() 131 for (; i < ndigits; i++) in __aconvert() 133 buf[ndigits] = '\0'; in __aconvert() [all …]
|
H A D | __flt_decim.c | 277 if (pm->ndigits < 0 || pm->ndigits > __TBL_TENS_MAX) in __fast_double_to_decimal() 282 if (pm->ndigits) { in __fast_double_to_decimal() 284 if (pm->ndigits > __TBL_TENS_EXACT) { in __fast_double_to_decimal() 285 dds *= __tbl_tens[pm->ndigits]; in __fast_double_to_decimal() 288 dds = __mul_set(dds, __tbl_tens[pm->ndigits], in __fast_double_to_decimal() 304 is = (pm->ndigits > 0)? pm->ndigits : 1; in __fast_double_to_decimal() 310 is = __double_to_digits(dds, pd->ds, pm->ndigits); in __fast_double_to_decimal() 312 pd->ndigits = is; in __fast_double_to_decimal() 313 pd->exponent = -pm->ndigits; in __fast_double_to_decimal() 316 if (pm->ndigits < 1 || pm->ndigits > 18) in __fast_double_to_decimal() [all …]
|
H A D | decimal_bin.c | 157 ndigs = pd->ndigits; in __decimal_to_unpacked() 346 if (pd->ndigits <= 18) { in __fast_decimal_to_single() 348 n = pd->ndigits; in __fast_decimal_to_single() 352 exp += pd->ndigits - 18; in __fast_decimal_to_single() 440 if (pm->rd != fp_nearest || pd->ndigits > 18 || pd->exponent in __fast_decimal_to_double() 445 dds = __digits_to_double(pd->ds, pd->ndigits, &e); in __fast_decimal_to_double() 537 if (pd->exponent + pd->ndigits > SINGLE_MAXE) { in decimal_to_single() 545 } else if (pd->exponent + pd->ndigits < -SINGLE_MAXE) { in decimal_to_single() 616 if (pd->exponent + pd->ndigits > DOUBLE_MAXE) { in decimal_to_double() 624 } else if (pd->exponent + pd->ndigits < -DOUBLE_MAXE) { in decimal_to_double() [all …]
|
H A D | double_decim.c | 204 er = -pm->ndigits; in __big_decimal_to_string() 224 elast = er = e - pm->ndigits + 1; in __big_decimal_to_string() 279 pd->ndigits = is; in __big_decimal_to_string() 326 pd->ndigits = is; in __big_decimal_to_string() 349 if (pm->ndigits >= DECIMAL_STRING_LENGTH || pm->ndigits <= in __bigfloat_to_decimal() 361 if (pm->ndigits >= 0 && bf->bexponent < 0) { in __bigfloat_to_decimal() 365 powten = pm->ndigits + 1; in __bigfloat_to_decimal() 384 if (i <= 0 || ((i * 19728) >> 16) < pm->ndigits + 1) { in __bigfloat_to_decimal() 390 powten = pm->ndigits + 1; in __bigfloat_to_decimal() 407 sigdigits = pm->ndigits + 2; in __bigfloat_to_decimal()
|
H A D | hex_bin.c | 58 pu->exponent = pd->exponent + (pd->ndigits << 2) - 1; in __hex_to_unpacked() 64 n = pd->ndigits; in __hex_to_unpacked() 91 if (pd->ndigits > 30 || pd->more) in __hex_to_unpacked()
|
H A D | char_to_decimal.h | 129 pd->ndigits = 0; 382 pd->ndigits = ids; 512 pd->ndigits = ids; 732 pd->ndigits = ids;
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | seconvert.c | 31 seconvert(arg, ndigits, decpt, sign, buf) in seconvert() argument 33 int ndigits, *decpt, *sign; 47 dm.ndigits = ndigits; /* Number of significant digits. */ 53 *decpt = dr.exponent + ndigits; 54 for (i = 0; i < ndigits; i++) 56 buf[ndigits] = 0; 60 for (i = 0; i < ndigits; i++) 62 buf[ndigits] = 0; 67 if (ndigits < 8) 87 sfconvert(arg, ndigits, decpt, sign, buf) in sfconvert() argument [all …]
|
H A D | qeconvert.c | 31 qeconvert(arg, ndigits, decpt, sign, buf) in qeconvert() argument 33 int ndigits, *decpt, *sign; 47 dm.ndigits = ndigits; /* Number of significant digits. */ 53 *decpt = dr.exponent + ndigits; 54 for (i = 0; i < ndigits; i++) 56 buf[ndigits] = 0; 60 for (i = 0; i < ndigits; i++) 62 buf[ndigits] = 0; 67 if (ndigits < 8) 87 qfconvert(arg, ndigits, decpt, sign, buf) in qfconvert() argument [all …]
|
H A D | econvert.c | 34 econvert(arg, ndigits, decpt, sign, buf) in econvert() argument 36 int ndigits, *decpt, *sign; 48 dm.ndigits = ndigits; /* Number of significant digits. */ 54 *decpt = dr.exponent + ndigits; 55 for (i = 0; i < ndigits; i++) 57 buf[ndigits] = 0; 61 for (i = 0; i < ndigits; i++) 63 buf[ndigits] = 0; 68 if (ndigits < 8) 88 fconvert(arg, ndigits, decpt, sign, buf) in fconvert() argument [all …]
|
H A D | double_decim.c | 61 if (pd->ndigits <= 0) in decimal_round() 63 lsd = pd->ds[pd->ndigits - 1] - '0'; in decimal_round() 79 for (i = (pd->ndigits - 1); (pd->ds[i] == '9') && (i >= 0); i--) in decimal_round() 89 if (pd->ndigits > 0) in decimal_round() 90 pd->ds[pd->ndigits] = '0'; in decimal_round() 91 pd->ndigits++; in decimal_round() 96 if (pd->ndigits <= 0) { /* Create zero string. */ in decimal_round() 98 pd->ndigits = 1; in decimal_round() 101 pd->ds[pd->ndigits] = 0;/* Terminate string. */ in decimal_round() 352 if ((pm->ndigits >= DECIMAL_STRING_LENGTH) || in _unpacked_to_decimal() [all …]
|
H A D | ecvt.c | 35 ecvt(arg, ndigits, decpt, sign) in ecvt() argument 37 int ndigits, *decpt, *sign; 41 return econvert(arg, ndigits, decpt, sign, efcvtbuffer); 45 fcvt(arg, ndigits, decpt, sign) in fcvt() argument 47 int ndigits, *decpt, *sign; 51 return fconvert(arg, ndigits, decpt, sign, efcvtbuffer);
|
/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | ecvt.c | 50 ecvt(number, ndigits, decpt, sign) in ecvt() argument 52 int ndigits; 58 return (econvert(number, ndigits, decpt, sign, buf)); 62 fcvt(number, ndigits, decpt, sign) in fcvt() argument 64 int ndigits; 73 ptr = fconvert(number, ndigits, decpt, sign, buf); 90 qecvt(number, ndigits, decpt, sign) in qecvt() argument 92 int ndigits; 98 return (qeconvert(&number, ndigits, decpt, sign, buf)); 102 qfcvt(number, ndigits, decpt, sign) in qfcvt() argument [all …]
|
/titanic_41/usr/src/lib/libc/amd64/gen/ |
H A D | ecvt.c | 50 ecvt(number, ndigits, decpt, sign) in ecvt() argument 52 int ndigits; 58 return (econvert(number, ndigits, decpt, sign, buf)); 62 fcvt(number, ndigits, decpt, sign) in fcvt() argument 64 int ndigits; 73 ptr = fconvert(number, ndigits, decpt, sign, buf); 90 qecvt(number, ndigits, decpt, sign) in qecvt() argument 92 int ndigits; 98 return (qeconvert(&number, ndigits, decpt, sign, buf)); 102 qfcvt(number, ndigits, decpt, sign) in qfcvt() argument [all …]
|
/titanic_41/usr/src/lib/libc/sparcv9/gen/ |
H A D | ecvt.c | 50 ecvt(double number, int ndigits, int *decpt, int *sign) in ecvt() argument 54 return (econvert(number, ndigits, decpt, sign, buf)); in ecvt() 58 fcvt(double number, int ndigits, int *decpt, int *sign) in fcvt() argument 65 ptr = fconvert(number, ndigits, decpt, sign, buf); in fcvt() 83 qecvt(number, ndigits, decpt, sign) in qecvt() argument 85 int ndigits; 91 return (qeconvert(&number, ndigits, decpt, sign, buf)); 95 qfcvt(long double number, int ndigits, int *decpt, int *sign) in qfcvt() argument 99 return (qfconvert(&number, ndigits, decpt, sign, buf)); in qfcvt() 103 qgcvt(long double number, int ndigits, char *buffer) in qgcvt() argument [all …]
|
/titanic_41/usr/src/lib/libc/sparc/gen/ |
H A D | ecvt.c | 50 ecvt(double number, int ndigits, int *decpt, int *sign) in ecvt() argument 54 return (econvert(number, ndigits, decpt, sign, buf)); in ecvt() 58 fcvt(double number, int ndigits, int *decpt, int *sign) in fcvt() argument 65 ptr = fconvert(number, ndigits, decpt, sign, buf); in fcvt() 85 int ndigits, in qecvt() argument 91 return (qeconvert(&number, ndigits, decpt, sign, buf)); in qecvt() 95 qfcvt(long double number, int ndigits, int *decpt, int *sign) in qfcvt() argument 99 return (qfconvert(&number, ndigits, decpt, sign, buf)); in qfcvt() 103 qgcvt(long double number, int ndigits, char *buffer) in qgcvt() argument 105 return (qgconvert(&number, ndigits, 0, buffer)); in qgcvt()
|
/titanic_41/usr/src/cmd/format/ |
H A D | menu_partition.c | 42 static int ndigits(uint64_t); 48 static int ndigits(); 491 ncyl2_digits = ndigits(map->efi_last_u_lba); in print_efi_partition() 582 ncyl2_digits = ndigits(maxcyl2); in print_partition() 632 nspaces(ncyl2_digits - ndigits(cyl2)); in print_partition() 648 nspaces(ndigits(maxnblks/spc()) - ndigits(nblks/spc())); in print_partition() 654 len = strlen(" %") + ndigits(ndigits(maxnblks)) + strlen("d\n") + 1; in print_partition() 656 (void) snprintf(s, len, "%s%u%s", " %", ndigits(maxnblks), "u\n"); in print_partition() 707 ndigits(n) in ndigits() function
|
/titanic_41/usr/src/cmd/sgs/nm/common/ |
H A D | nm.c | 681 int ndigits; in print_symtab() local 686 ndigits = ndigits_arr[fmt_flag]; in print_symtab() 688 ndigits *= 2; in print_symtab() 693 print_header(ndigits); in print_symtab() 731 print_with_pflag(ndigits, elf_file, shstrndx, in print_symtab() 734 print_with_Pflag(ndigits, elf_file, shstrndx, in print_symtab() 737 print_with_otherflags(ndigits, elf_file, in print_symtab() 908 print_header(int ndigits) in print_header() argument 932 ndigits += pad[fmt_flag]; in print_header() 933 (void) printf(fmt, "[Index]", ndigits, " Value", in print_header() [all …]
|
/titanic_41/usr/src/lib/efcode/engine/ |
H A D | env.c | 400 int cnv = 10, ndigits = 0; in fmt_args() local 440 while ((cbuf[ndigits] != NULL) && in fmt_args() 441 (ndigits < cbsize)) in fmt_args() 442 ndigits++; in fmt_args() 445 if (ndigits > cw) { in fmt_args() 493 while ((cbuf[ndigits] != NULL) && in fmt_args() 494 (ndigits < cbsize)) { in fmt_args() 495 ndigits++; in fmt_args() 498 if (ndigits > cw) { in fmt_args()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | gcvt.c | 42 gcvt(double number, int ndigits, char *buf) in gcvt() argument 44 return (gconvert(number, ndigits, 0, buf)); in gcvt()
|
/titanic_41/usr/src/lib/libc/port/print/ |
H A D | print.h | 57 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf); 60 __qaconvert(long double *arg, int ndigits, int *exp, int *sign, char *buf);
|
/titanic_41/usr/src/lib/libbc/inc/include/ |
H A D | floatingpoint.h | 106 int ndigits;/* On fixed_form conversion from binary to member 125 int ndigits;/* Number of digits for conversion. */ member
|
/titanic_41/usr/src/head/ |
H A D | floatingpoint.h | 112 int ndigits; /* On fixed_form conversion from binary to */ member 131 int ndigits; /* Number of digits for conversion. */ member
|