Lines Matching refs:prec
229 bool negative, unsigned int base, unsigned int prec, unsigned int width, in _ntoa_format() argument
236 while ((len < prec) && (len < PICO_PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
246 if (!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
280 … unsigned long base, unsigned int prec, unsigned int width, unsigned int flags) { in _ntoa_long() argument
298 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int) base, prec, width… in _ntoa_long()
306 … bool negative, unsigned long long base, unsigned int prec, unsigned int width, in _ntoa_long_long() argument
325 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int) base, prec, width… in _ntoa_long_long()
335 …t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec,
342 …t _ftoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, in _ftoa() argument
364 return _etoa(out, buffer, idx, maxlen, value, prec, width, flags); in _ftoa()
379 prec = PICO_PRINTF_DEFAULT_FLOAT_PRECISION; in _ftoa()
382 while ((len < PICO_PRINTF_FTOA_BUFFER_SIZE) && (prec > 9U)) { in _ftoa()
384 prec--; in _ftoa()
388 double tmp = (value - whole) * pow10[prec]; in _ftoa()
395 if (frac >= pow10[prec]) { in _ftoa()
405 if (prec == 0U) { in _ftoa()
413 unsigned int count = prec; in _ftoa()
467 …t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, in _etoa() argument
471 return _ftoa(out, buffer, idx, maxlen, value, prec, width, flags); in _etoa()
482 prec = PICO_PRINTF_DEFAULT_FLOAT_PRECISION; in _etoa()
522 if ((int) prec > expval) { in _etoa()
523 prec = (unsigned) ((int) prec - expval - 1); in _etoa()
525 prec = 0; in _etoa()
533 if ((prec > 0) && (flags & FLAGS_PRECISION)) { in _etoa()
534 --prec; in _etoa()
560 …idx = _ftoa(out, buffer, idx, maxlen, negative ? -value : value, prec, fwidth, flags & ~FLAGS_ADAP… in _etoa()
663 const int prec = (int) va_arg(va, int); in _vsnprintf() local
664 precision = prec > 0 ? (unsigned int) prec : 0U; in _vsnprintf()