Searched refs:MPD_RDIGITS (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | constants.c | 66 const mpd_uint_t mpd_pow10[MPD_RDIGITS+1] = { 107 const mpd_uint_t mpd_pow10[MPD_RDIGITS+1] = {
|
D | context.c | 79 ideal_minalloc = 2 * ((prec+MPD_RDIGITS-1) / MPD_RDIGITS); in mpd_init() 103 ctx->prec=2*MPD_RDIGITS; in mpd_defaultcontext()
|
D | basearith.c | 441 _mpd_div_word(&q, &r, (mpd_uint_t)shift, MPD_RDIGITS); in _mpd_baseshiftl() 448 _mpd_divmod_pow10(&h, &lprev, src[m--], MPD_RDIGITS-r); in _mpd_baseshiftl() 454 _mpd_divmod_pow10(&h, &l, src[m], MPD_RDIGITS-r); in _mpd_baseshiftl() 512 _mpd_div_word(&q, &r, (mpd_uint_t)shift, MPD_RDIGITS); in _mpd_baseshiftr() 517 ph = mpd_pow10[MPD_RDIGITS-r]; in _mpd_baseshiftr() 538 _mpd_divmod_pow10(&rnd, &rest, src[q-1], MPD_RDIGITS-1); in _mpd_baseshiftr()
|
D | mpdecimal.c | 252 _mpd_idiv_word(&q, &r, digits, MPD_RDIGITS); in mpd_digits_to_size() 620 result->digits = wdigits + (result->len-1) * MPD_RDIGITS; in mpd_setdigits() 791 _mpd_idiv_word(&len, &r, ctx->prec, MPD_RDIGITS); in mpd_qmaxcoeff() 821 _mpd_idiv_word(&len, &r, ctx->prec, MPD_RDIGITS); in _mpd_cap() 857 _mpd_idiv_word(&len, &r, prec, MPD_RDIGITS); in _mpd_fix_nan() 891 assert(0 < n && n <= MPD_RDIGITS+1); in _mpd_get_msdigits() 893 _mpd_div_word(&tmp, &r, dec->digits, MPD_RDIGITS); in _mpd_get_msdigits() 894 r = (r == 0) ? MPD_RDIGITS : r; /* digits in the most significant word */ in _mpd_get_msdigits() 904 tmp = dec->data[dec->len-2] / mpd_pow10[MPD_RDIGITS-(n-r)]; in _mpd_get_msdigits() 936 tz = i * MPD_RDIGITS; in mpd_trail_zeros() [all …]
|
D | io.c | 110 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() 410 s = word_to_string(s, x, MPD_RDIGITS, NULL); in coeff_to_string() 431 s = word_to_string(s, x, MPD_RDIGITS, dot); in coeff_to_string_dot()
|
D | mpdecimal.h | 142 #define MPD_RDIGITS 19 macro 187 #define MPD_RDIGITS 9 macro
|