Lines Matching refs:prec

55 #define print_utf8(utf8, prec) \  argument
58 convbuf = helpers::mbsconv(utf8, prec); \
76 int prec; /* precision from format; <0 for N/A */ in FUNCTION_NAME() local
182 prec = -1; in FUNCTION_NAME()
225 prec = n < 0 ? -1 : n; in FUNCTION_NAME()
244 prec = n; in FUNCTION_NAME()
353 if (prec >= 0) prec++; in FUNCTION_NAME()
357 dtoaresult = __hldtoa(fparg.ldbl, xdigs, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
364 dtoaresult = __hdtoa(fparg.dbl, xdigs, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
370 if (prec < 0) prec = dtoaend - dtoaresult; in FUNCTION_NAME()
376 if (prec < 0) /* account for digit before decpt */ in FUNCTION_NAME()
377 prec = DEFPREC + 1; in FUNCTION_NAME()
379 prec++; in FUNCTION_NAME()
388 if (prec == 0) prec = 1; in FUNCTION_NAME()
390 if (prec < 0) prec = DEFPREC; in FUNCTION_NAME()
394 dtoaresult = __ldtoa(&fparg.ldbl, expchar ? 2 : 3, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
401 dtoaresult = __dtoa(fparg.dbl, expchar ? 2 : 3, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
430 if (expt > -4 && expt <= prec) { in FUNCTION_NAME()
434 prec -= expt; in FUNCTION_NAME()
436 prec = ndig - expt; in FUNCTION_NAME()
437 if (prec < 0) prec = 0; in FUNCTION_NAME()
443 if (!(flags & ALT)) prec = ndig; in FUNCTION_NAME()
448 size = expsize + prec; in FUNCTION_NAME()
449 if (prec > 1 || flags & ALT) ++size; in FUNCTION_NAME()
457 if (prec || flags & ALT) size += prec + 1; in FUNCTION_NAME()
466 if (name) print_utf8(name, prec); in FUNCTION_NAME()
470 print_utf8(strerror_r(caller_errno, reinterpret_cast<char*>(buf), sizeof(buf)), prec); in FUNCTION_NAME()
500 print_utf8(mbsarg, prec); in FUNCTION_NAME()
503 if (prec >= 0) { in FUNCTION_NAME()
504 size = CHAR_TYPE_STRNLEN(cp, prec); in FUNCTION_NAME()
555 if ((dprec = prec) >= 0) flags &= ~ZEROPAD; in FUNCTION_NAME()
563 if (_umax != 0 || prec != 0) { in FUNCTION_NAME()
662 if (prec || flags & ALT) PRINT(decimal_point, 1); in FUNCTION_NAME()
665 prec += expt; in FUNCTION_NAME()
669 if (prec || flags & ALT) PRINT(decimal_point, 1); in FUNCTION_NAME()
671 PRINTANDPAD(cp, end, prec, zeroes); in FUNCTION_NAME()
673 if (prec > 1 || flags & ALT) { in FUNCTION_NAME()
678 PAD(prec - ndig, zeroes); in FUNCTION_NAME()