/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | ecvtbuf.c | 69 int ndigit, in print_f() argument 79 start = p = __dtoa (invalue, mode, ndigit, &decpt, &sign, &end); in print_f() 106 if (decpt < 0 && ndigit > 0) in print_f() 108 while (decpt < 0 && ndigit > 0) in print_f() 112 ndigit--; in print_f() 116 while (*p && ndigit > 0) in print_f() 119 ndigit--; in print_f() 122 while (ndigit > 0) in print_f() 125 ndigit--; in print_f() 151 int ndigit = width; in print_e() local [all …]
|
D | efgcvt.c | 113 int ndigit, in fcvt() argument 117 return fcvtbuf (d, ndigit, decpt, sign, NULL); in fcvt() 122 int ndigit, in fcvtf() argument 126 return fcvt ((double) d, ndigit, decpt, sign); in fcvtf() 132 int ndigit, in gcvt() argument 139 ndigit--; in gcvt() 141 return (_gcvt (d, ndigit, buf, 'g', 0) ? tbuf : 0); in gcvt() 147 int ndigit, in gcvtf() argument 151 return gcvt (asd, ndigit, buf); in gcvtf() 157 int ndigit, in ecvt() argument [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | ecvtl_r.c | 44 int ndigit, in ecvtl_r() argument 54 if (ndigit < 0) in ecvtl_r() 55 ndigit = 0; in ecvtl_r() 57 if ((size_t) ndigit > len - 1) in ecvtl_r() 68 if (ndigit < ngot) in ecvtl_r() 69 ngot = ndigit; in ecvtl_r() 70 ndigit = ngot; in ecvtl_r() 73 ngot = __ldtoa_engine(invalue, &dtoa, ndigit, false, 0); in ecvtl_r() 75 ngot = __dtoa_engine((FLOAT64) invalue, &dtoa, ndigit, false, 0); in ecvtl_r() 77 ngot = __ftoa_engine((float) invalue, &dtoa, ndigit, false, 0); in ecvtl_r() [all …]
|
D | ecvt_r.c | 44 int ndigit, in ecvt_r() argument 54 if (ndigit < 0) in ecvt_r() 55 ndigit = 0; in ecvt_r() 57 if ((size_t) ndigit > len - 1) in ecvt_r() 68 if (ndigit < ngot) in ecvt_r() 69 ngot = ndigit; in ecvt_r() 70 ndigit = ngot; in ecvt_r() 72 ngot = __dtoa_engine(invalue, &dtoa, ndigit, false, 0); in ecvt_r() 76 memset(buf, '0', ndigit); in ecvt_r() 78 buf[ndigit] = '\0'; in ecvt_r() [all …]
|
D | fcvtf_r.c | 50 int ndigit; /* numer of generated digits */ in fcvtf_r() local 55 ndigit = 3; in fcvtf_r() 70 ndigit = __ftoa_engine(invalue, &dtoa, FTOA_MAX_DIG, true, ndecimal); in fcvtf_r() 94 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvtf_r() 103 ndigit = 0; in fcvtf_r() 117 if ((size_t) (ndigit + ntrailing) >= len) in fcvtf_r() 121 memcpy(buf, digits, ndigit); in fcvtf_r() 122 len -= ndigit; in fcvtf_r() 123 buf += ndigit; in fcvtf_r()
|
D | ecvtf_r.c | 43 int ndigit, in ecvtf_r() argument 52 if (ndigit < 0) in ecvtf_r() 53 ndigit = 0; in ecvtf_r() 55 if ((size_t) ndigit > len - 1) in ecvtf_r() 58 ngot = __ftoa_engine(invalue, &dtoa, ndigit, false, 0); in ecvtf_r() 61 memset(buf, '0', ndigit); in ecvtf_r() 63 buf[ndigit] = '\0'; in ecvtf_r()
|
D | fcvtl_r.c | 52 int ndigit; /* numer of generated digits */ in fcvtl_r() local 57 ndigit = 3; in fcvtl_r() 73 ndigit = __ldtoa_engine(invalue, &dtoa, LDTOA_MAX_DIG, true, ndecimal); in fcvtl_r() 75 ndigit = __dtoa_engine((FLOAT64) invalue, &dtoa, DTOA_MAX_DIG, true, ndecimal); in fcvtl_r() 77 ndigit = __ftoa_engine ((float) invalue, &dtoa, FTOA_MAX_DIG, true, ndecimal); in fcvtl_r() 102 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvtl_r() 111 ndigit = 0; in fcvtl_r() 125 if ((size_t) (ndigit + ntrailing) >= len) in fcvtl_r() 129 memcpy(buf, digits, ndigit); in fcvtl_r() 130 buf += ndigit; in fcvtl_r()
|
D | fcvt_r.c | 52 int ndigit; /* numer of generated digits */ in fcvt_r() local 57 ndigit = 3; in fcvt_r() 72 ndigit = __dtoa_engine(invalue, &dtoa, DTOA_MAX_DIG, true, ndecimal); in fcvt_r() 96 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvt_r() 105 ndigit = 0; in fcvt_r() 119 if ((size_t) (ndigit + ntrailing) >= len) in fcvt_r() 123 memcpy(buf, digits, ndigit); in fcvt_r() 124 buf += ndigit; in fcvt_r()
|
D | ecvtl.c | 46 int ndigit, in ecvtl() argument 50 if (ecvtl_r(invalue, ndigit, decpt, sign, ecvt_buf, sizeof(ecvt_buf)) < 0) in ecvtl() 62 int ndigit, in ecvtl() argument 66 return ecvtf((float) invalue, ndigit, decpt, sign); in ecvtl() 75 int ndigit, in ecvtl() argument 79 return ecvt((double) invalue, ndigit, decpt, sign); in ecvtl()
|
D | ecvt.c | 48 int ndigit, in ecvt() argument 52 if (ecvt_r(invalue, ndigit, decpt, sign, ecvt_buf, sizeof(ecvt_buf)) < 0) in ecvt() 61 int ndigit, in ecvt() argument 65 return ecvtf((float) invalue, ndigit, decpt, sign); in ecvt()
|
D | fcvt.c | 50 int ndigit, in fcvt() argument 54 if (fcvt_r(invalue, ndigit, decpt, sign, fcvt_buf, sizeof(fcvt_buf)) < 0) in fcvt() 63 int ndigit, in fcvt() argument 67 return fcvtf((float) invalue, ndigit, decpt, sign); in fcvt()
|
D | gcvt.c | 40 int ndigit, in gcvt() argument 43 __d_sprintf(buf, "%.*g", ndigit, invalue); in gcvt()
|
D | gcvtl.c | 40 int ndigit, in gcvtl() argument 43 __d_sprintf(buf, "%.*Lg", ndigit, invalue); in gcvtl()
|
D | gcvtf.c | 40 int ndigit, in gcvtf() argument 43 __f_sprintf(buf, "%.*g", ndigit, __printf_float(invalue)); in gcvtf()
|
D | ecvtf.c | 46 int ndigit, in ecvtf() argument 50 if (ecvtf_r(invalue, ndigit, decpt, sign, ecvtf_buf, sizeof(ecvtf_buf)) < 0) in ecvtf()
|
D | fcvtl.c | 48 int ndigit, in fcvtl() argument 52 if (fcvtl_r(invalue, ndigit, decpt, sign, fcvt_buf, sizeof(fcvt_buf)) < 0) in fcvtl()
|
/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | dcvt.c | 545 int ndigit, in fcvtbuf() argument 556 return print_nan(fcvt_buf, invalue, ndigit); in fcvtbuf() 564 in.decimal_places = ndigit; in fcvtbuf() 574 int ndigit, in ecvtbuf() argument 584 return print_nan(fcvt_buf, invalue, ndigit); in ecvtbuf() 595 in.max_digits = ndigit; /* Take as many as told */ in ecvtbuf() 606 int ndigit, in gcvt() argument 609 return _dcvt(buf, d, ndigit, 0, 'g', 1); in gcvt()
|
/picolibc-3.7.0-3.6.0/test/ |
D | test-efcvt.c | 43 int ndigit; member 178 int ret = func(tests[i].value, tests[i].ndigit, &decpt, &sign, buf, sizeof(buf)); \
|