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 | 107 n_adj = lo + (n1_neg & MPD_RADIX); in _mpd_div_words_r() 122 _mpd_mul_words(&h, &l, t, MPD_RADIX); in _mpd_div_words_r() 126 h -= MPD_RADIX; in _mpd_div_words_r() 139 *r = l + (MPD_RADIX & h); in _mpd_div_words_r() 145 _mpd_div_words(q, r, hi, lo, MPD_RADIX); in _mpd_div_words_r() 210 if (data[len] != MPD_RADIX-1) return 0; in _mpd_isallnine()
|
D | crt.c | 173 x1[i] = _crt_div3(carry, carry, MPD_RADIX); in crt3()
|
D | mpdecimal.c | 780 result->data[len] = MPD_RADIX-1; in mpd_qmaxcoeff() 1032 _mpd_div_word(&result->data[1], &result->data[0], a, MPD_RADIX); in _ssettriple() 1044 _mpd_div_word(&result->data[1], &result->data[0], a, MPD_RADIX); in _settriple() 1183 q = u / MPD_RADIX; in _c32setu64() 1184 w[len] = (mpd_uint_t)(u - q * MPD_RADIX); in _c32setu64() 8255 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() 8257 if (rbase == MPD_RADIX) { in mpd_qexport_u32() 8260 else if (rbase < MPD_RADIX) { in mpd_qexport_u32() 8262 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() 8266 tsrc.data, tsrc.len, MPD_RADIX); in mpd_qexport_u32() [all …]
|
D | mpdecimal.h | 161 #define MPD_RADIX 10000000000000000000ULL /* 10**19 */ macro 205 #define MPD_RADIX 1000000000UL /* 10**9 */ macro
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 1914 q = v / MPD_RADIX; in _dec_settriple() 1915 r = v - q * MPD_RADIX; in _dec_settriple()
|