Home
last modified time | relevance | path

Searched refs:MPD_RDIGITS (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Modules/_decimal/libmpdec/
Dconstants.c66 const mpd_uint_t mpd_pow10[MPD_RDIGITS+1] = {
107 const mpd_uint_t mpd_pow10[MPD_RDIGITS+1] = {
Dcontext.c77 ideal_minalloc = 2 * ((prec+MPD_RDIGITS-1) / MPD_RDIGITS); in mpd_init()
101 ctx->prec=2*MPD_RDIGITS; in mpd_defaultcontext()
Dbasearith.c440 _mpd_div_word(&q, &r, (mpd_uint_t)shift, MPD_RDIGITS); in _mpd_baseshiftl()
447 _mpd_divmod_pow10(&h, &lprev, src[m--], MPD_RDIGITS-r); in _mpd_baseshiftl()
453 _mpd_divmod_pow10(&h, &l, src[m], MPD_RDIGITS-r); in _mpd_baseshiftl()
511 _mpd_div_word(&q, &r, (mpd_uint_t)shift, MPD_RDIGITS); in _mpd_baseshiftr()
516 ph = mpd_pow10[MPD_RDIGITS-r]; in _mpd_baseshiftr()
537 _mpd_divmod_pow10(&rnd, &rest, src[q-1], MPD_RDIGITS-1); in _mpd_baseshiftr()
Dmpdecimal.c249 _mpd_idiv_word(&q, &r, digits, MPD_RDIGITS); in mpd_digits_to_size()
594 result->digits = wdigits + (result->len-1) * MPD_RDIGITS; in mpd_setdigits()
765 _mpd_idiv_word(&len, &r, ctx->prec, MPD_RDIGITS); in mpd_qmaxcoeff()
795 _mpd_idiv_word(&len, &r, ctx->prec, MPD_RDIGITS); in _mpd_cap()
831 _mpd_idiv_word(&len, &r, prec, MPD_RDIGITS); in _mpd_fix_nan()
865 assert(0 < n && n <= MPD_RDIGITS+1); in _mpd_get_msdigits()
867 _mpd_div_word(&tmp, &r, dec->digits, MPD_RDIGITS); in _mpd_get_msdigits()
868 r = (r == 0) ? MPD_RDIGITS : r; /* digits in the most significant word */ in _mpd_get_msdigits()
878 tmp = dec->data[dec->len-2] / mpd_pow10[MPD_RDIGITS-(n-r)]; in _mpd_get_msdigits()
910 tz = i * MPD_RDIGITS; in mpd_trail_zeros()
[all …]
Dio.c110 for (j = 0; j < MPD_RDIGITS; j++, s++) { in string_to_coeff()
306 _mpd_idiv_word(&q, &r, (mpd_ssize_t)digits, MPD_RDIGITS); in mpd_qset_string()
394 s = word_to_string(s, x, MPD_RDIGITS, NULL); in coeff_to_string()
415 s = word_to_string(s, x, MPD_RDIGITS, dot); in coeff_to_string_dot()
Dmpdecimal.h162 #define MPD_RDIGITS 19 macro
206 #define MPD_RDIGITS 9 macro