Searched refs:ideal_exp (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 3761 mpd_ssize_t ideal_exp; in _mpd_qdiv() local 3792 ideal_exp = a->exp - b->exp; in _mpd_qdiv() 3793 exp = ideal_exp - shift; in _mpd_qdiv() 3852 shift = ideal_exp - exp; in _mpd_qdiv() 3954 mpd_ssize_t ideal_exp, expdiff, shift; in _mpd_qdivmod() local 3959 ideal_exp = (a->exp > b->exp) ? b->exp : a->exp; in _mpd_qdivmod() 3964 r->exp = ideal_exp; in _mpd_qdivmod() 3977 r->exp = ideal_exp; in _mpd_qdivmod() 4078 r->exp = ideal_exp; in _mpd_qdivmod() 7765 mpd_ssize_t ideal_exp, shift; in _mpd_qinvroot() local [all …]
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 1375 ideal_exp = self._exp - other._exp 1376 while exp < ideal_exp and coeff % 10 == 0: 1391 ideal_exp = self._exp 1393 ideal_exp = min(self._exp, other._exp) 1398 self._rescale(ideal_exp, context.rounding)) 1409 _dec_from_triple(self._sign, str(r), ideal_exp))
|
/external/python/cpython2/Lib/ |
D | decimal.py | 1342 ideal_exp = self._exp - other._exp 1343 while exp < ideal_exp and coeff % 10 == 0: 1358 ideal_exp = self._exp 1360 ideal_exp = min(self._exp, other._exp) 1365 self._rescale(ideal_exp, context.rounding)) 1376 _dec_from_triple(self._sign, str(r), ideal_exp))
|