/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfecvt.c | 25 char* sfecvt(double dval, int n_digit, int* decpt, int* sign) argument 27 char* sfecvt(dval,n_digit,decpt,sign) 30 int* decpt; /* to return decimal point */ 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,SFFMT_EFORMAT);
|
H A D | sffcvt.c | 25 char *sffcvt(double dval, int n_digit, int* decpt, int* sign) argument 27 char *sffcvt(dval,n_digit,decpt,sign) 30 int* decpt; /* to return decimal point */ 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,0);
|
H A D | sfcvt.c | 102 int* decpt, int* sign, int* len, int format) 104 char* _sfcvt(vp,buf,size,n_digit,decpt,sign,len,format) 109 int* decpt; /* to return decimal point */ 124 *sign = *decpt = 0; 204 *decpt = x; 249 *decpt = (int)n; 259 if((*decpt += (int)n) >= SF_IDIGITS) 267 n = (((format&SFFMT_EFORMAT) || *decpt <= 0) ? 1 : *decpt+1) - n; 280 if((format&SFFMT_EFORMAT) && *decpt 101 _sfcvt(Void_t* vp, char* buf, size_t size, int n_digit, int* decpt, int* sign, int* len, int format) argument [all...] |
H A D | sfvprintf.c | 107 int dot, width, precis, sign, decpt; local 1137 &decpt, &sign, &n_s, v); 1143 &decpt, &sign, &n_s, v); 1155 &decpt, &sign, &n_s, v); 1170 &decpt, &sign, &n_s, v); 1172 decpt = 1; 1186 if(decpt < -3 || decpt > precis) 1191 { precis = n - decpt; 1215 { if((n = decpt [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | char_to_decimal.h | 42 char decpt; variable 54 decpt = '.'; 57 decpt = '.'; 59 decpt = *(localeconv()->decimal_point); 204 if (CURRENT == decpt) { 301 if (CURRENT == decpt) { 315 if (*good != decpt) /* If not, bump good. */
|
H A D | gconvert.c | 49 char decpt = '.'; local 51 char decpt = *(localeconv()->decimal_point); local 61 *(p++) = decpt; 86 *(p++) = decpt; 93 if (*p != decpt) 114 *(p++) = decpt; 121 *(p++) = decpt; 131 if (*p != decpt)
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | econvert.c | 56 econvert(double arg, int ndigits, int *decpt, int *sign, char *buf) argument 81 *decpt = dr.exponent + ndigits; 87 *decpt = 1; 93 *decpt = 0; 101 seconvert(single *arg, int ndigits, int *decpt, int *sign, char *buf) argument 126 *decpt = dr.exponent + ndigits; 132 *decpt = 1; 138 *decpt = 0; 146 qeconvert(quadruple *arg, int ndigits, int *decpt, int *sign, char *buf) argument 177 *decpt [all...] |
H A D | fconvert.c | 35 fconvert(double arg, int ndigits, int *decpt, int *sign, char *buf) argument 60 *decpt = dr.exponent + dr.ndigits; 74 *decpt = 0; 81 *decpt = 0; 89 sfconvert(single *arg, int ndigits, int *decpt, int *sign, char *buf) argument 114 *decpt = dr.exponent + dr.ndigits; 128 *decpt = 0; 135 *decpt = 0; 143 qfconvert(quadruple *arg, int ndigits, int *decpt, int *sign, char *buf) argument 184 *decpt [all...] |
H A D | char_to_decimal.h | 106 char decpt; variable 116 * condition (current == decpt) will correctly detect it. 119 decpt = '.'; 121 decpt = *(localeconv()->decimal_point); 216 } else if (current == decpt) { 346 if (current == decpt) { 469 if (current == decpt) {
|
H A D | gconvert.c | 40 char decpt = *(localeconv()->decimal_point); local 49 *(p++) = decpt; 63 *(p++) = decpt; 71 if (*p != decpt) 96 *(p++) = decpt; 104 *(p++) = decpt; 115 if (*p != decpt)
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_stdlib.c | 43 fptos(const char *p, char *buf, size_t buflen, int decpt, int sign, char expchr) argument 66 if (--decpt < 0) { 67 decpt = -decpt; 72 if (decpt < 10) 75 (void) strcpy(q, numtostr((uint_t)decpt, 10, 0)); 91 int decpt, sign; local 94 p = econvert(d, precision + 1, &decpt, &sign, digits); 95 return (fptos(p, buf, sizeof (buf), decpt, sign, expchr)); 106 int decpt, sig local [all...] |
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | ecvt.c | 35 * decpt is set to the position of the decimal point 50 ecvt(double number, int ndigits, int *decpt, int *sign) argument 54 return (econvert(number, ndigits, decpt, sign, buf)); 58 fcvt(double number, int ndigits, int *decpt, int *sign) argument 65 ptr = fconvert(number, ndigits, decpt, sign, buf); 68 deci_val = *decpt; 73 *decpt = deci_val; /* If there are leading zero's */ 86 int *decpt, 91 return (qeconvert(&number, ndigits, decpt, sign, buf)); 95 qfcvt(long double number, int ndigits, int *decpt, in argument 83 qecvt( long double number, int ndigits, int *decpt, int *sign) argument [all...] |
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | ecvt.c | 35 * decpt is set to the position of the decimal point 50 ecvt(double number, int ndigits, int *decpt, int *sign) argument 54 return (econvert(number, ndigits, decpt, sign, buf)); 58 fcvt(double number, int ndigits, int *decpt, int *sign) argument 65 ptr = fconvert(number, ndigits, decpt, sign, buf); 68 deci_val = *decpt; 73 *decpt = deci_val; /* If there are leading zero's */ 83 qecvt(number, ndigits, decpt, sign) 86 int *decpt; 91 return (qeconvert(&number, ndigits, decpt, sig 95 qfcvt(long double number, int ndigits, int *decpt, int *sign) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ecvt.c | 35 * decpt is set to the position of the decimal point 56 ecvt(double value, int ndigit, int *decpt, int *sign) argument 58 return (cvt(value, ndigit, decpt, sign, 0)); 62 fcvt(double value, int ndigit, int *decpt, int *sign) argument 64 return (cvt(value, ndigit, decpt, sign, 1)); 68 cvt(double value, int ndigit, int *decpt, int *sign, int f_flag) argument 86 *decpt = 0; 104 ++*decpt; 107 for (; value >= sp->p10; *decpt += sp->n) 119 ++*decpt; [all...] |
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | wstod.c | 197 char decpt; local 207 * condition (current == decpt) will correctly detect it. 209 decpt = *(localeconv()->decimal_point); 276 } else if (current == (wchar_t)decpt) { 354 if (current == (wchar_t)decpt) { 445 if (current == decpt) {
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | printf.c | 150 int decpt, sign; local 442 &decpt, 477 n = decpt - 1; 493 *--suffix = (decpt > 0 || dval == 0) ? 523 &decpt, 528 if (sign && decpt > -prec && 541 n = decpt; 566 if (++decpt <= 0 || *bp == '\0' || 597 &decpt, 600 decpt [all...] |
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | doprnt.c | 162 int decpt, sign; local 697 bp = econvert(dval, prec + 1, &decpt, &sign, convertbuffer); 700 bp = qeconvert(&qval, prec + 1, &decpt, &sign, convertbuffer); 739 n = decpt - 1; 757 *--suffix = (decpt > 0 || convertbuffer[0] == '0' )? '+': '-'; 787 bp = fconvert(dval, prec, &decpt, &sign, convertbuffer); 790 bp = qfconvert(&qval, prec, &decpt, &sign, convertbuffer); 812 n = decpt; 832 if (++decpt <= 0 || *bp == '\0')
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | doprnt.c | 216 int decpt, sign; local 719 bp = ecvt(dval, min(prec + 1, MAXECVT), &decpt, &sign); 758 int nn = decpt - 1; 771 *--suffix = (decpt > 0 || dval == 0) ? '+' : '-'; 824 bp = fcvt(dval, min(prec, MAXFCVT), &decpt, &sign); 842 int nn = decpt; 863 *p++ = (++decpt <= 0 || *bp == '\0' || 917 bp = ecvt(dval, min(prec, MAXECVT), &decpt, &sign); 919 decpt = 1; 932 if (decpt < [all...] |
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | doprnt.c | 107 #define FPCONV(func, val, prec, decpt, sign, cvtbuf) \ 112 (void) func(val, prec, decpt, sign, cb); \ 175 #define FPCONV(func, val, prec, decpt, sign, cvtbuf) \ 176 (void) func(val, prec, decpt, sign, cvtbuf); 539 int decpt, sign; local 1419 min(prec + 1, MAXECVT), &decpt, &sign, 1425 min(prec + 1, MAXECVT), &decpt, &sign, 1472 * +0 regardless of decpt. 1476 int nn = decpt - 1; 1489 *--suffix = (decpt > [all...] |