Home
last modified time | relevance | path

Searched refs:dtoa (Results 1 – 20 of 20) sorted by relevance

/picolibc-latest/newlib/libc/tinystdio/
Dfcvtf_r.c48 struct dtoa dtoa; in fcvtf_r() local
52 char *digits = dtoa.digits; in fcvtf_r()
70 ndigit = __ftoa_engine(invalue, &dtoa, FTOA_MAX_DIG, true, ndecimal); in fcvtf_r()
71 *sign = !!(dtoa.flags & DTOA_MINUS); in fcvtf_r()
94 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvtf_r()
109 dtoa.exp = -(dtoa_decimal + 1); in fcvtf_r()
111 *decpt = dtoa.exp + 1; in fcvtf_r()
Dfcvtl_r.c50 struct dtoa dtoa; in fcvtl_r() local
54 char *digits = dtoa.digits; 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()
79 *sign = !!(dtoa.flags & DTOA_MINUS); in fcvtl_r()
102 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvtl_r()
117 dtoa.exp = -(dtoa_decimal + 1); in fcvtl_r()
119 *decpt = dtoa.exp + 1; in fcvtl_r()
Ddtoa.h113 struct dtoa { struct
121 __ldtoa_engine(long double x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals); argument
124 __ldtox_engine(long double x, struct dtoa *dtoa, int prec, unsigned char case_convert);
132 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals);
135 __dtox_engine(FLOAT64 x, struct dtoa *dtoa, int prec, unsigned char case_convert);
142 int __ftoa_engine (float val, struct dtoa *ftoa, int max_digits, bool fmode, int max_decimals);
145 __ftox_engine(float x, struct dtoa *dtoa, int prec, unsigned char case_convert);
Dfcvt_r.c50 struct dtoa dtoa; in fcvt_r() local
54 char *digits = dtoa.digits; in fcvt_r()
72 ndigit = __dtoa_engine(invalue, &dtoa, DTOA_MAX_DIG, true, ndecimal); in fcvt_r()
73 *sign = !!(dtoa.flags & DTOA_MINUS); in fcvt_r()
96 ntrailing = (dtoa.exp + 1 - ndigit) + dtoa_decimal; in fcvt_r()
111 dtoa.exp = -(dtoa_decimal + 1); in fcvt_r()
113 *decpt = dtoa.exp + 1; in fcvt_r()
Decvtf_r.c49 struct dtoa dtoa; in ecvtf_r() local
58 ngot = __ftoa_engine(invalue, &dtoa, ndigit, false, 0); in ecvtf_r()
59 *sign = !!(dtoa.flags & DTOA_MINUS); in ecvtf_r()
60 *decpt = dtoa.exp + 1; in ecvtf_r()
62 memcpy(buf, dtoa.digits, ngot); in ecvtf_r()
Decvtl_r.c50 struct dtoa dtoa; in ecvtl_r() local
51 char *digits = dtoa.digits; 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()
79 *sign = !!(dtoa.flags & DTOA_MINUS); in ecvtl_r()
80 *decpt = dtoa.exp + 1; in ecvtl_r()
Dldtoa_engine.c53 __ldtoa_engine(long double x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __ldtoa_engine() argument
57 dtoa->flags = 0; in __ldtoa_engine()
60 dtoa->flags |= DTOA_MINUS; in __ldtoa_engine()
64 dtoa->flags |= DTOA_NAN; in __ldtoa_engine()
67 dtoa->flags |= DTOA_INF; in __ldtoa_engine()
141 dtoa->digits[i] = '0' + digit; in __ldtoa_engine()
146 dtoa->exp = decexp; in __ldtoa_engine()
Decvt_r.c50 struct dtoa dtoa; in ecvt_r() local
51 char *digits = dtoa.digits; in ecvt_r()
72 ngot = __dtoa_engine(invalue, &dtoa, ndigit, false, 0); in ecvt_r()
73 *sign = !!(dtoa.flags & DTOA_MINUS); in ecvt_r()
74 *decpt = dtoa.exp + 1; in ecvt_r()
Ddtox_engine.c107 __dtox_engine (DTOX_FLOAT x, struct dtoa *dtoa, int prec, unsigned char case_convert) in __dtox_engine() argument
114 dtoa->flags = 0; in __dtox_engine()
116 dtoa->flags = DTOA_MINUS; in __dtox_engine()
123 dtoa->flags |= DTOA_NAN; in __dtox_engine()
125 dtoa->flags |= DTOA_INF; in __dtox_engine()
135 dtoa->exp = exp; in __dtox_engine()
160 dtoa->digits[d] = dig; in __dtox_engine()
Dldtox_engine.c93 __ldtox_engine(long double x, struct dtoa *dtoa, int prec, unsigned char case_convert) in __ldtox_engine() argument
98 dtoa->flags = 0; in __ldtox_engine()
101 dtoa->flags = DTOA_MINUS; in __ldtox_engine()
155 dtoa->flags |= DTOA_NAN; in __ldtox_engine()
157 dtoa->flags |= DTOA_INF; in __ldtox_engine()
169 dtoa->digits[d] = dig; in __ldtox_engine()
174 dtoa->exp = exp; in __ldtox_engine()
Ddtoa_engine.c65 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __dtoa_engine() argument
85 dtoa->digits[0] = '0'; in __dtoa_engine()
215 dtoa->digits[i] = (fract >> 60) + '0'; in __dtoa_engine()
220 dtoa->flags = flags; in __dtoa_engine()
221 dtoa->exp = decexp; in __dtoa_engine()
Dftoa_ryu.c299 __ftoa_engine(float x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __ftoa_engine() argument
316 dtoa->digits[0] = '0'; in __ftoa_engine()
317 dtoa->flags = flags; in __ftoa_engine()
318 dtoa->exp = 0; in __ftoa_engine()
327 dtoa->flags = flags; in __ftoa_engine()
342 dtoa->digits[olength - i - 1] = (mant % 10) + '0'; in __ftoa_engine()
346 dtoa->exp = exp; in __ftoa_engine()
347 dtoa->flags = flags; in __ftoa_engine()
Ddtoa_ryu.c364 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __dtoa_engine() argument
388 dtoa->digits[0] = '0'; in __dtoa_engine()
389 dtoa->flags = flags; in __dtoa_engine()
390 dtoa->exp = 0; in __dtoa_engine()
399 dtoa->flags = flags; in __dtoa_engine()
430 dtoa->digits[olength - i - 1] = (mant % 10) + '0'; in __dtoa_engine()
434 dtoa->exp = exp; in __dtoa_engine()
435 dtoa->flags = flags; in __dtoa_engine()
Dvfprintf.c500 struct dtoa __dtoa; in vfprintf()
510 #define dtoa (u.__dtoa) in vfprintf() macro
714 prec = __lfloat_x_engine(fval, &dtoa, prec, case_convert); in vfprintf()
716 exp = dtoa.exp; in vfprintf()
743 ndigs = __lfloat_d_engine(fval, &dtoa, ndigs, fmode, ndecimal); in vfprintf()
745 exp = dtoa.exp; in vfprintf()
766 ndigs = 1 + __float_x_engine(fval, &dtoa, prec, case_convert); in vfprintf()
769 exp = dtoa.exp; in vfprintf()
796 ndigs = __float_d_engine (fval, &dtoa, ndigs, fmode, ndecimal); in vfprintf()
797 exp = dtoa.exp; in vfprintf()
[all …]
Dftoa_engine.c90 int __ftoa_engine(float val, struct dtoa *ftoa, int maxDigits, bool fmode, int maxDecimals) in __ftoa_engine()
/picolibc-latest/newlib/libc/stdlib/
Dmprec.h314 extern "C" char *dtoa(double d, int mode, int ndigits,
Dmeson.build168 'dtoa.c',
/picolibc-latest/newlib/
DNEWS390 * dtoa.c updated from upstream dtoa.c soruces (netlib.att.com)
DChangeLog-201511400 * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
19071 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
19135 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
20762 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
21316 * libc/stdlib/dtoa.c: Ditto.
21344 cvt routine to use union used by dtoa to properly determine
21403 *libc/dtoa.c: Change routines to use generic Long type.
22393 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
24403 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
24443 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
[all …]
/picolibc-latest/
DCOPYING.picolibc1970 Files: newlib/libc/tinystdio/dtoa.h
4077 newlib/libc/stdlib/dtoa.c