Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_decimal/
D_decimal.c1843 mpd_context_t maxctx; in PyDecType_FromCStringExact() local
1850 mpd_maxcontext(&maxctx); in PyDecType_FromCStringExact()
1852 mpd_qset_string(MPD(dec), s, &maxctx, &status); in PyDecType_FromCStringExact()
1951 mpd_context_t maxctx; in PyDecType_FromSsizeExact() local
1958 mpd_maxcontext(&maxctx); in PyDecType_FromSsizeExact()
1960 mpd_qset_ssize(MPD(dec), v, &maxctx, &status); in PyDecType_FromSsizeExact()
2053 mpd_context_t maxctx; in PyDecType_FromLongExact() local
2060 mpd_maxcontext(&maxctx); in PyDecType_FromLongExact()
2061 dec = dec_from_long(type, v, &maxctx, &status); in PyDecType_FromLongExact()
2100 mpd_context_t maxctx; in PyDecType_FromFloatExact() local
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py360 self.maxctx = P.Context(Emax=10**18, Emin=-10**18)
411 self.maxctx.prec = p * 2
412 t = self.maxctx.subtract(y, x)
420 err = self.maxctx.divide(t, ulp)
448 self.maxctx.prec = context.p.prec * 2
452 exact = getattr(self.maxctx, t.funcname)(op1, op2)
454 exact = getattr(op1, t.funcname)(op2, context=self.maxctx)
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c6168 mpd_context_t maxctx; in _mpd_qpow_mpd() local
6172 mpd_maxcontext(&maxctx); in _mpd_qpow_mpd()
6187 mpd_qdivint(texp, texp, &two, &maxctx, &workstatus); in _mpd_qpow_mpd()
6397 mpd_context_t maxctx; in _lower_bound_zeta() local
6411 mpd_maxcontext(&maxctx); in _lower_bound_zeta()
6412 mpd_qsub(&scratch, x, &one, &maxctx, status); in _lower_bound_zeta()