Lines Matching refs:prec
53 int prec; /* precision from format; <0 for N/A */ in FUNCTION_NAME() local
166 prec = -1; in FUNCTION_NAME()
209 prec = n < 0 ? -1 : n; in FUNCTION_NAME()
228 prec = n; in FUNCTION_NAME()
330 if (prec >= 0) prec++; in FUNCTION_NAME()
334 dtoaresult = __hldtoa(fparg.ldbl, xdigs, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
341 dtoaresult = __hdtoa(fparg.dbl, xdigs, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
347 if (prec < 0) prec = dtoaend - dtoaresult; in FUNCTION_NAME()
357 if (prec < 0) /* account for digit before decpt */ in FUNCTION_NAME()
358 prec = DEFPREC + 1; in FUNCTION_NAME()
360 prec++; in FUNCTION_NAME()
369 if (prec == 0) prec = 1; in FUNCTION_NAME()
371 if (prec < 0) prec = DEFPREC; in FUNCTION_NAME()
375 dtoaresult = __ldtoa(&fparg.ldbl, expchar ? 2 : 3, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
382 dtoaresult = __dtoa(fparg.dbl, expchar ? 2 : 3, prec, &expt, &signflag, &dtoaend); in FUNCTION_NAME()
407 if (expt > -4 && expt <= prec) { in FUNCTION_NAME()
411 prec -= expt; in FUNCTION_NAME()
413 prec = ndig - expt; in FUNCTION_NAME()
414 if (prec < 0) prec = 0; in FUNCTION_NAME()
420 if (!(flags & ALT)) prec = ndig; in FUNCTION_NAME()
425 size = expsize + prec; in FUNCTION_NAME()
426 if (prec > 1 || flags & ALT) ++size; in FUNCTION_NAME()
434 if (prec || flags & ALT) size += prec + 1; in FUNCTION_NAME()
443 reinterpret_cast<char*>(buf), sizeof(buf)), prec); in FUNCTION_NAME()
481 convbuf = helpers::mbsconv(mbsarg, prec); in FUNCTION_NAME()
490 if (prec >= 0) { in FUNCTION_NAME()
491 size = CHAR_TYPE_STRNLEN(cp, prec); in FUNCTION_NAME()
527 if ((dprec = prec) >= 0) flags &= ~ZEROPAD; in FUNCTION_NAME()
535 if (_umax != 0 || prec != 0) { in FUNCTION_NAME()
626 if (prec || flags & ALT) PRINT(decimal_point, 1); in FUNCTION_NAME()
629 prec += expt; in FUNCTION_NAME()
633 if (prec || flags & ALT) PRINT(decimal_point, 1); in FUNCTION_NAME()
635 PRINTANDPAD(cp, convbuf + ndig, prec, zeroes); in FUNCTION_NAME()
637 if (prec > 1 || flags & ALT) { in FUNCTION_NAME()
642 PAD(prec - ndig, zeroes); in FUNCTION_NAME()