Home
last modified time | relevance | path

Searched refs:maxctx (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Modules/_decimal/
D_decimal.c1988 mpd_context_t maxctx; in PyDecType_FromCStringExact() local
1995 mpd_maxcontext(&maxctx); in PyDecType_FromCStringExact()
1997 mpd_qset_string(MPD(dec), s, &maxctx, &status); in PyDecType_FromCStringExact()
2096 mpd_context_t maxctx; in PyDecType_FromSsizeExact() local
2103 mpd_maxcontext(&maxctx); in PyDecType_FromSsizeExact()
2105 mpd_qset_ssize(MPD(dec), v, &maxctx, &status); in PyDecType_FromSsizeExact()
2198 mpd_context_t maxctx; in PyDecType_FromLongExact() local
2205 mpd_maxcontext(&maxctx); in PyDecType_FromLongExact()
2206 dec = dec_from_long(type, v, &maxctx, &status); in PyDecType_FromLongExact()
2245 mpd_context_t maxctx; in PyDecType_FromFloatExact() local
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py391 self.maxctx = P.Context(Emax=10**18, Emin=-10**18)
442 self.maxctx.prec = p * 2
443 t = self.maxctx.subtract(y, x)
451 err = self.maxctx.divide(t, ulp)
479 self.maxctx.prec = context.p.prec * 2
483 exact = getattr(self.maxctx, t.funcname)(op1, op2)
485 exact = getattr(op1, t.funcname)(op2, context=self.maxctx)
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c6330 mpd_context_t maxctx; in _mpd_qpow_mpd() local
6334 mpd_maxcontext(&maxctx); in _mpd_qpow_mpd()
6349 mpd_qdivint(texp, texp, &two, &maxctx, &workstatus); in _mpd_qpow_mpd()
6561 mpd_context_t maxctx; in _lower_bound_zeta() local
6575 mpd_maxcontext(&maxctx); in _lower_bound_zeta()
6576 mpd_qsub(&scratch, x, &one, &maxctx, status); in _lower_bound_zeta()