Lines Matching refs:dplace
462 _mpd_to_string(char **result, const mpd_t *dec, int flags, mpd_ssize_t dplace) in _mpd_to_string() argument
548 dplace = ldigits; in _mpd_to_string()
555 dplace = -1 + mod_mpd_ssize_t(dec->exp+2, 3); in _mpd_to_string()
560 dplace += mod_mpd_ssize_t(ldigits-1, 3); in _mpd_to_string()
572 if (dplace <= 0) { in _mpd_to_string()
573 mem = -dplace + dec->digits + 2; in _mpd_to_string()
575 else if (dplace >= dec->digits) { in _mpd_to_string()
576 mem = dplace; in _mpd_to_string()
600 if (dplace <= 0) { in _mpd_to_string()
604 for (k = 0; k < -dplace; k++) { in _mpd_to_string()
609 else if (dplace >= dec->digits) { in _mpd_to_string()
612 for (k = 0; k < dplace-dec->digits; k++) { in _mpd_to_string()
618 cp = coeff_to_string_dot(cp, cp+dplace, dec); in _mpd_to_string()
628 if (ldigits != dplace || flags&MPD_FMT_EXP) { in _mpd_to_string()
631 cp = exp_to_string(cp, ldigits-dplace); in _mpd_to_string()
1253 mpd_ssize_t dplace = MPD_DEFAULT_DOTPLACE; in mpd_qformat_spec() local
1324 dplace = 1-spec->prec; in mpd_qformat_spec()
1365 result.nbytes = _mpd_to_string(&result.data, dec, flags, dplace); in mpd_qformat_spec()