Home
last modified time | relevance | path

Searched refs:prec (Results 1 – 17 of 17) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dvfprintf.c424 int prec; in vfprintf() local
475 prec = 0; in vfprintf()
512 prec = 10*prec + c; in vfprintf()
531 prec = va_arg(ap, int); in vfprintf()
533 (void) prec; in vfprintf()
564 skip_to_arg(fmt_orig, &my_ap, (flags & FL_PREC) ? prec : width); in vfprintf()
566 prec = va_arg(ap, int); in vfprintf()
573 prec = 0; in vfprintf()
600 if (prec < 0) { in vfprintf()
601 prec = 0; in vfprintf()
[all …]
Ddtox_engine.c105 __dtox_engine (DTOX_FLOAT x, struct dtoa *dtoa, int prec, unsigned char case_convert) in __dtox_engine() argument
127 if (prec < 0) in __dtox_engine()
128 prec = 0; in __dtox_engine()
129 else if (prec >= (DTOX_NDIGS - 1)) in __dtox_engine()
130 prec = DTOX_NDIGS - 1; in __dtox_engine()
132 int bits = ((DTOX_NDIGS - 1) - prec) << 2; in __dtox_engine()
155 if (dig == 0 && d > prec) in __dtox_engine()
162 if (prec < d) in __dtox_engine()
163 prec = d; in __dtox_engine()
167 return prec; in __dtox_engine()
Dldtox_engine.c91 __ldtox_engine(long double x, struct dtoa *dtoa, int prec, unsigned char case_convert) in __ldtox_engine() argument
115 if (prec < 0) in __ldtox_engine()
116 prec = 0; in __ldtox_engine()
117 else if (prec >= (LDTOX_NDIGS - 1)) in __ldtox_engine()
118 prec = LDTOX_NDIGS - 1; in __ldtox_engine()
120 int bits = ((LDTOX_NDIGS - 1) - prec) << 2; in __ldtox_engine()
145 if (dig == 0 && d > prec) in __ldtox_engine()
152 if (prec < d) in __ldtox_engine()
153 prec = d; in __ldtox_engine()
157 return prec; in __ldtox_engine()
Ddtoa.h125 __ldtox_engine(long double x, struct dtoa *dtoa, int prec, unsigned char case_convert);
136 __dtox_engine(FLOAT64 x, struct dtoa *dtoa, int prec, unsigned char case_convert);
146 __ftox_engine(float x, struct dtoa *dtoa, int prec, unsigned char case_convert);
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dnano-vfprintf_float.c228 if (pdata->prec == -1) in _printf_float()
230 pdata->prec = DEFPREC; in _printf_float()
232 else if ((code == 'g' || code == 'G') && pdata->prec == 0) in _printf_float()
234 pdata->prec = 1; in _printf_float()
239 cp = __cvt (data, _fpvalue, pdata->prec, pdata->flags, &softsign, in _printf_float()
244 if (expt <= -4 || expt > pdata->prec) in _printf_float()
267 if (pdata->prec || pdata->flags & ALT) in _printf_float()
268 pdata->size += pdata->prec + 1; in _printf_float()
272 pdata->size = (pdata->prec || pdata->flags & ALT) in _printf_float()
273 ? pdata->prec + 2 : 1; in _printf_float()
Dnano-vfprintf_i.c180 if ((pdata->dprec = pdata->prec) >= 0) in _printf_i()
188 if (_uquad != 0 || pdata->prec != 0) in _printf_i()
199 if (base == 8 && (pdata->flags & ALT) && pdata->prec <= pdata->size) in _printf_i()
223 char *p = memchr (cp, 0, pdata->prec); in _printf_i()
226 pdata->prec = p - cp; in _printf_i()
228 pdata->size = pdata->prec; in _printf_i()
Dvfwprintf.c378 int prec; /* precision from format (%.3d), or -1 */ in VFWPRINTF() local
639 prec = -1; in VFWPRINTF()
773 prec = GET_ARG (n, ap, int); in VFWPRINTF()
777 if (prec < 0) in VFWPRINTF()
778 prec = -1; in VFWPRINTF()
786 prec = n < 0 ? -1 : n; in VFWPRINTF()
1002 if (prec >= BUF) in VFWPRINTF()
1005 (wchar_t *)malloc ((prec + 1) * sizeof (wchar_t))) in VFWPRINTF()
1015 if (prec == -1) { in VFWPRINTF()
1016 prec = DEFPREC; in VFWPRINTF()
[all …]
Dvfprintf.c412 int prec; /* precision from format (%.3d), or -1 */ in VFPRINTF() local
692 prec = -1; in VFPRINTF()
810 prec = GET_ARG (n, ap, int); in VFPRINTF()
814 if (prec < 0) in VFPRINTF()
815 prec = -1; in VFPRINTF()
823 prec = n < 0 ? -1 : n; in VFPRINTF()
1045 if (prec >= BUF) in VFPRINTF()
1048 (char *)malloc (prec + 1)) in VFPRINTF()
1060 if (prec == -1) { in VFPRINTF()
1061 prec = DEFPREC; in VFPRINTF()
[all …]
Dnano-vfprintf.c520 prt_data.prec = -1; in VFPRINTF()
577 prt_data.prec = GET_ARG (n, ap_copy, int); in VFPRINTF()
578 if (prt_data.prec < 0) in VFPRINTF()
579 prt_data.prec = -1; in VFPRINTF()
583 prt_data.prec = 0; in VFPRINTF()
585 prt_data.prec = 10 * prt_data.prec + to_digit (*fmt); in VFPRINTF()
Dnano-vfprintf_local.h192 int prec; /* Precision. */ member
/picolibc-3.7.0-3.6.0/test/
Dlong_double_gen.5c70 int prec = 512;
89 string prec = toupper(name) + "_PREC";
90 printf("#ifndef %s\n", prec);
91 printf("#define %s DEFAULT_PREC\n", prec);
93 return prec;
111 y = imprecise(f.f(imprecise(x, prec)), out_prec);
384 y = round_even(f.f(imprecise(x0, prec), imprecise(x1, prec)), out_prec);
435 y = imprecise(f.f(imprecise(x0, prec), imprecise(x1, prec), imprecise(x2, prec)), out_prec);
602 y = imprecise(f.f(imprecise(x0, prec), x1), out_prec);
658 y = f.f(imprecise(x, prec));
Dlong_double.c72 check_long_double(const char *name, int i, long double prec, long double expect, long double result) in check_long_double() argument
74 if (!within_error(expect, result, prec)) { in check_long_double()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/x86/
Dfenv.c448 fesetprec (int prec) in fesetprec() argument
453 switch (prec) in fesetprec()
468 cw |= (prec << FE_CW_PREC_SHIFT); in fesetprec()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/
Dk_rem_pio2.c295 __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec) in __kernel_rem_pio2() argument
301 jk = init_jk[prec]; in __kernel_rem_pio2()
410 switch(prec) { in __kernel_rem_pio2()
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Dkf_rem_pio2.c50 __kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, in __kernel_rem_pio2f() argument
57 jk = init_jk[prec]; in __kernel_rem_pio2f()
190 switch (prec) { in __kernel_rem_pio2f()
Dk_rem_pio2.c160 __kernel_rem_pio2(__float64 *x, __float64 *y, int e0, int nx, int prec, in __kernel_rem_pio2() argument
167 jk = init_jk[prec]; in __kernel_rem_pio2()
300 switch (prec) { in __kernel_rem_pio2()
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dldtoa.c3352 int esign, decflg, sgnflg, nexp, exp, prec, lost;
3395 prec = 0;
3404 if ((prec == 0) && (decflg == 0) && (k == 0))
3450 prec += 1;