Home
last modified time | relevance | path

Searched refs:emax (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython3/Modules/_decimal/tests/
Dranddec.py191 def close_to_one_greater(prec, emax, emin): argument
196 def close_to_one_less(prec, emax, emin): argument
202 def close_to_zero_greater(prec, emax, emin): argument
207 def close_to_zero_less(prec, emax, emin): argument
213 def close_to_emax_less(prec, emax, emin): argument
216 str(randrange(rprec)), "E", str(emax)))
218 def close_to_emax_greater(prec, emax, emin): argument
221 str(randrange(rprec)), "E", str(emax+1)))
224 def close_to_emin_greater(prec, emax, emin): argument
229 def close_to_emin_less(prec, emax, emin): argument
[all …]
Ddeccheck.py793 emin, emax = expts
798 context.Emin, context.Emax = emin, emax
/external/python/cpython3/Modules/_decimal/libmpdec/
Dcontext.c88 ctx->emax=MPD_MAX_EMAX; in mpd_maxcontext()
102 ctx->emax=MPD_MAX_EMAX; in mpd_defaultcontext()
116 ctx->emax=MPD_MAX_EMAX; in mpd_basiccontext()
134 ctx->emax = 3 * ((mpd_ssize_t)1<<(bits/16+3)); in mpd_ieee_context()
135 ctx->emin = 1 - ctx->emax; in mpd_ieee_context()
155 return ctx->emax; in mpd_getemax()
206 mpd_qsetemax(mpd_context_t *ctx, mpd_ssize_t emax) in mpd_qsetemax() argument
208 if (emax < 0 || emax > MPD_MAX_EMAX) { in mpd_qsetemax()
211 ctx->emax = emax; in mpd_qsetemax()
Dmpdecimal.c215 return ctx->emax - (ctx->prec - 1); in mpd_etop()
727 workctx->emax = ctx->emax; in mpd_workcontext()
1746 if (adjexp > ctx->emax) { in _mpd_check_exp()
1749 dec->exp = ctx->emax; in _mpd_check_exp()
1766 dec->exp = ctx->emax - ctx->prec + 1; in _mpd_check_exp()
1771 dec->exp = ctx->emax - ctx->prec + 1; in _mpd_check_exp()
1780 dec->exp = ctx->emax - ctx->prec + 1; in _mpd_check_exp()
2970 maxjump = 2 * (mpd_uint_t)(ctx->emax + ctx->prec); in mpd_qscaleb()
4901 if (mpd_exp_digits(t)-1 > ctx->emax) { in mpd_qln()
5053 if (mpd_exp_digits(t)-1 > ctx->emax) { in mpd_qlog10()
[all …]
Dmpdecimal.h262 mpd_ssize_t emax; /* max positive exp */ member
344 int mpd_qsetemax(mpd_context_t *ctx, mpd_ssize_t emax);
/external/arm-optimized-routines/math/tools/
Dplot.py50 emax = max(es)
51 ax0.text(a+(b-a)*0.7, emax*0.8, '%s\n%g'%(emax.hex(),emax))
/external/icu/icu4c/source/i18n/
DdecContext.cpp68 context->emax=DEC_MAX_EMAX; /* 9-digit exponents */ in uprv_decContextDefault()
83 context->emax=96; /* Emax */ in uprv_decContextDefault()
94 context->emax=384; /* Emax */ in uprv_decContextDefault()
105 context->emax=6144; /* Emax */ in uprv_decContextDefault()
DdecNumber.cpp731 || (dn->exponent-1>set->emax-set->digits)) { in uprv_decNumberFromString()
1158 dcmul.emax=DEC_MAX_EMAX; /* effectively unbounded .. */ in uprv_decNumberFMA()
1504 aset.emax=DEC_MAX_MATH; /* usual bounds */ in uprv_decNumberLog10()
2126 aset.emax=DEC_MAX_MATH; /* usual bounds */ in uprv_decNumberPower()
2664 || abs(reqexp)>(2*(set->digits+set->emax))) /* .. or out of range */ in uprv_decNumberScaleB()
2953 workset.emax=DEC_MAX_EMAX; in uprv_decNumberSquareRoot()
3061 approxset.emax-=exp/2; in uprv_decNumberSquareRoot()
3075 approxset.emax-=exp/2; in uprv_decNumberSquareRoot()
3113 Int maxexp=set->emax-set->digits+1; in uprv_decNumberSquareRoot()
3978 && rhs->exponent<=set->emax-set->digits+1 /* [could clamp] */ in decAddOp()
[all …]
DdecContext.h92 int32_t emax; /* maximum positive exponent */ member
/external/arm-optimized-routines/math/test/
Dulp.h24 if (e > RT(emax) - RT(prec)) in RT()
25 e = RT(emax) - RT(prec); in RT()
31 return RT(emax) - RT(prec); in RT()
198 mpfr_set_emax (RT(emax)); in T()
/external/python/cpython2/Modules/
Dselectmodule.c206 int imax, omax, emax, max; in select_select() local
260 if ((emax=seq2set(efdlist, &efdset, efd2obj)) < 0) in select_select()
264 if (emax > max) max = emax; in select_select()
/external/python/cpython3/Modules/
Dselectmodule.c264 int imax, omax, emax, max; in select_select_impl() local
312 if ((emax = seq2set(xlist, &efdset, efd2obj)) < 0) in select_select_impl()
317 if (emax > max) max = emax; in select_select_impl()
/external/python/cpython3/Modules/_decimal/
D_decimal.c731 Dec_CONTEXT_GET_SSIZE(emax) in Dec_CONTEXT_GET_SSIZE() argument
892 ctx->emax = x; in context_unsafe_setemax()
1235 PyObject *emax = Py_None; in context_init() local
1247 &prec, &rounding, &emin, &emax, &capitals, &clamp, &status, &traps in context_init()
1261 if (emax != Py_None && context_setemax(self, emax, NULL) < 0) { in context_init()
1332 ctx->prec, mpd_round_string[ctx->round], ctx->emin, ctx->emax, in context_repr()
1438 ctx->prec, mpd_round_string[ctx->round], ctx->emin, ctx->emax, in context_reduce()
4448 maxctx.emax = MPD_MAX_EMAX + 21; in _dec_hash()
/external/python/cpython3/Lib/test/
Dtest_decimal.py1721 emax = C.MAX_EMAX if C else 999999999
1724 c = Context(Emax=emax, Emin=emin)
1727 c.prec = emax
1742 self.assertLessEqual(F(120984237, 9999999999), D("9e" + str(emax)))
1743 self.assertGreaterEqual(D("9e" + str(emax)), F(120984237, 9999999999))
2863 emax = random.randrange(1, 100)
2870 prec=prec, Emin=emin, Emax=emax,
2885 self.assertEqual(d.Emax, emax)
5293 emax = random.randrange(0, 10000)
5297 c = Context(prec=prec, rounding=round, Emin=emin, Emax=emax,
[all …]
/external/python/cpython3/Lib/
D_pydecimal.py2174 emax = p*93//65
2175 if ye >= len(str(emax)):
2184 if e > emax:
2202 emax = p*10//3
2203 if ye >= len(str(emax)):
2211 if e > emax:
/external/python/cpython2/Lib/
Ddecimal.py2062 emax = p*93//65
2063 if ye >= len(str(emax)):
2072 if e > emax:
2090 emax = p*10//3
2091 if ye >= len(str(emax)):
2099 if e > emax:
/external/python/cpython3/Lib/test/decimaltestdata/
DdsBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
DdqBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
DddBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
Dbase.decTest27 -- to conform to emax and precision settings (that is, numbers will
/external/python/cpython2/Lib/test/decimaltestdata/
DdsBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
DddBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
DdqBase.decTest26 -- to conform to emax and precision settings (that is, numbers will
Dbase.decTest27 -- to conform to emax and precision settings (that is, numbers will
DddFMA.decTest32 -- 2. Multiply tests (third operand is neutral zero [0E+emax])

12