Lines Matching refs:dplace
446 _mpd_to_string(char **result, const mpd_t *dec, int flags, mpd_ssize_t dplace) in _mpd_to_string() argument
532 dplace = ldigits; in _mpd_to_string()
539 dplace = -1 + mod_mpd_ssize_t(dec->exp+2, 3); in _mpd_to_string()
544 dplace += mod_mpd_ssize_t(ldigits-1, 3); in _mpd_to_string()
556 if (dplace <= 0) { in _mpd_to_string()
557 mem = -dplace + dec->digits + 2; in _mpd_to_string()
559 else if (dplace >= dec->digits) { in _mpd_to_string()
560 mem = dplace; in _mpd_to_string()
584 if (dplace <= 0) { in _mpd_to_string()
588 for (k = 0; k < -dplace; k++) { in _mpd_to_string()
593 else if (dplace >= dec->digits) { in _mpd_to_string()
596 for (k = 0; k < dplace-dec->digits; k++) { in _mpd_to_string()
602 cp = coeff_to_string_dot(cp, cp+dplace, dec); in _mpd_to_string()
612 if (ldigits != dplace || flags&MPD_FMT_EXP) { in _mpd_to_string()
615 cp = exp_to_string(cp, ldigits-dplace); in _mpd_to_string()
1237 mpd_ssize_t dplace = MPD_DEFAULT_DOTPLACE; in mpd_qformat_spec() local
1307 dplace = 1-spec->prec; in mpd_qformat_spec()
1348 result.nbytes = _mpd_to_string(&result.data, dec, flags, dplace); in mpd_qformat_spec()