Searched refs:MPD_RADIX (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | basearith.c | 63 carry = (s < u[i]) | (s >= MPD_RADIX); in _mpd_baseadd() 64 w[i] = carry ? s-MPD_RADIX : s; in _mpd_baseadd() 69 carry = (s == MPD_RADIX); in _mpd_baseadd() 96 carry = (s < w[i]) | (s >= MPD_RADIX); in _mpd_baseaddto() 97 w[i] = carry ? s-MPD_RADIX : s; in _mpd_baseaddto() 102 carry = (s == MPD_RADIX); in _mpd_baseaddto() 122 carry = (s < v) | (s >= MPD_RADIX); in _mpd_shortadd() 123 w[0] = carry ? s-MPD_RADIX : s; in _mpd_shortadd() 128 carry = (s == MPD_RADIX); in _mpd_shortadd() 148 carry = (s == MPD_RADIX); in _mpd_baseincr() [all …]
|
D | basearith.h | 106 n_adj = lo + (n1_neg & MPD_RADIX); in _mpd_div_words_r() 121 _mpd_mul_words(&h, &l, t, MPD_RADIX); in _mpd_div_words_r() 125 h -= MPD_RADIX; in _mpd_div_words_r() 138 *r = l + (MPD_RADIX & h); in _mpd_div_words_r() 144 _mpd_div_words(q, r, hi, lo, MPD_RADIX); in _mpd_div_words_r() 209 if (data[len] != MPD_RADIX-1) return 0; in _mpd_isallnine()
|
D | crt.c | 176 x1[i] = _crt_div3(carry, carry, MPD_RADIX); in crt3()
|
D | mpdecimal.c | 806 result->data[len] = MPD_RADIX-1; in mpd_qmaxcoeff() 1058 _mpd_div_word(&result->data[1], &result->data[0], a, MPD_RADIX); in _ssettriple() 1070 _mpd_div_word(&result->data[1], &result->data[0], a, MPD_RADIX); in _settriple() 1209 q = u / MPD_RADIX; in _c32setu64() 1210 w[len] = (mpd_uint_t)(u - q * MPD_RADIX); in _c32setu64() 8498 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() 8500 if (rbase == MPD_RADIX) { in mpd_qexport_u32() 8503 else if (rbase < MPD_RADIX) { in mpd_qexport_u32() 8505 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() 8509 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() [all …]
|
D | mpdecimal.h | 141 #define MPD_RADIX 10000000000000000000ULL /* 10**19 */ macro 186 #define MPD_RADIX 1000000000UL /* 10**9 */ macro
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 2058 q = v / MPD_RADIX; in _dec_settriple() 2059 r = v - q * MPD_RADIX; in _dec_settriple()
|