Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_decimal/
D_decimal.c1987 mpd_context_t maxctx; in PyDecType_FromCStringExact() local
1994 mpd_maxcontext(&maxctx); in PyDecType_FromCStringExact()
1996 mpd_qset_string(MPD(dec), s, &maxctx, &status); in PyDecType_FromCStringExact()
2095 mpd_context_t maxctx; in PyDecType_FromSsizeExact() local
2102 mpd_maxcontext(&maxctx); in PyDecType_FromSsizeExact()
2104 mpd_qset_ssize(MPD(dec), v, &maxctx, &status); in PyDecType_FromSsizeExact()
2197 mpd_context_t maxctx; in PyDecType_FromLongExact() local
2204 mpd_maxcontext(&maxctx); in PyDecType_FromLongExact()
2205 dec = dec_from_long(type, v, &maxctx, &status); in PyDecType_FromLongExact()
2244 mpd_context_t maxctx; in PyDecType_FromFloatExact() local
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py395 self.maxctx = P.Context(Emax=10**18, Emin=-10**18)
446 self.maxctx.prec = p * 2
447 t = self.maxctx.subtract(y, x)
455 err = self.maxctx.divide(t, ulp)
483 self.maxctx.prec = context.p.prec * 2
487 exact = getattr(self.maxctx, t.funcname)(op1, op2)
489 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()