Searched refs:emax (Results 1 - 17 of 17) sorted by relevance

/external/python/cpython3/Modules/_decimal/tests/
H A Dranddec.py191 def close_to_one_greater(prec, emax, emin):
196 def close_to_one_less(prec, emax, emin):
202 def close_to_zero_greater(prec, emax, emin):
207 def close_to_zero_less(prec, emax, emin):
212 # Close to emax:
213 def close_to_emax_less(prec, emax, emin):
216 str(randrange(rprec)), "E", str(emax)))
218 def close_to_emax_greater(prec, emax, emin):
221 str(randrange(rprec)), "E", str(emax+1)))
224 def close_to_emin_greater(prec, emax, emi
[all...]
H A Ddeccheck.py793 emin, emax = expts
798 context.Emin, context.Emax = emin, emax
800 log(" prec: %d emin: %d emax: %d",
1021 # Contexts with small values for prec, emin, emax.
/external/python/cpython3/Modules/_decimal/libmpdec/
H A Dcontext.c88 ctx->emax=MPD_MAX_EMAX;
102 ctx->emax=MPD_MAX_EMAX;
116 ctx->emax=MPD_MAX_EMAX;
134 ctx->emax = 3 * ((mpd_ssize_t)1<<(bits/16+3));
135 ctx->emin = 1 - ctx->emax;
155 return ctx->emax;
206 mpd_qsetemax(mpd_context_t *ctx, mpd_ssize_t emax) argument
208 if (emax < 0 || emax > MPD_MAX_EMAX) {
211 ctx->emax
[all...]
H A Dmpdecimal.c209 return ctx->emax - (ctx->prec - 1);
721 workctx->emax = ctx->emax;
1740 if (adjexp > ctx->emax) {
1743 dec->exp = ctx->emax;
1760 dec->exp = ctx->emax - ctx->prec + 1;
1765 dec->exp = ctx->emax - ctx->prec + 1;
1774 dec->exp = ctx->emax - ctx->prec + 1;
1788 /* At this point adjexp=exp+digits-1 <= emax and exp > etop=emax
[all...]
H A Dmpdecimal.h217 #define MPD_EXP_INF 1000000001L /* allows for emax=999999999 in the tests */
262 mpd_ssize_t emax; /* max positive exp */ member in struct:mpd_context_t
344 int mpd_qsetemax(mpd_context_t *ctx, mpd_ssize_t emax);
/external/opencv/cv/src/
H A Dcvkdtree.cpp83 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { argument
101 tr->find_nn_bbf(dj, k, emax, nn);
162 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { argument
168 (d, k, emax, results, dist));
208 CvMat* results, CvMat* dist, int k, int emax) {
234 tr->find_nn(desc, k, emax, results, dist);
207 cvFindFeatures(CvFeatureTree* tr, CvMat* desc, CvMat* results, CvMat* dist, int k, int emax) argument
H A D_cvkdtree.hpp382 // searching at most emax leaves/bins.
387 int k, int emax,
396 // iterate while queue non-empty and emax>0
399 while (tmp_pq.size() && emax > 0) {
418 --emax;
386 find_nn_bbf(const __desctype * d, int k, int emax, bbf_nn_pqueue & ret_nn_pq) const argument
/external/icu/icu4c/source/i18n/
H A DdecContext.cpp68 context->emax=DEC_MAX_EMAX; /* 9-digit exponents */
83 context->emax=96; /* Emax */
94 context->emax=384; /* Emax */
105 context->emax=6144; /* Emax */
H A DdecContext.h47 /* emax -- must be in the range 0 through 999999999 */
92 int32_t emax; /* maximum positive exponent */ member in struct:__anon8080
110 #define DEC_MAX_MATH 999999 /* max emax, etc., for math funcs. */
H A DdecNumber.cpp66 /* tightly: digits, emax, and -emin in the context must be <= */
501 /* exponent (set.emax and set.emin), determining if */
729 || (dn->exponent-1>set->emax-set->digits)) {
1156 dcmul.emax=DEC_MAX_EMAX; /* effectively unbounded .. */
1347 /* same value. The exponent is not limited by emin/emax. */
1502 aset.emax=DEC_MAX_MATH; /* usual bounds */
2124 aset.emax=DEC_MAX_MATH; /* usual bounds */
2630 /* maximum magnitude 2*(emax+digits) */
2662 || abs(reqexp)>(2*(set->digits+set->emax))) /* .. or out of range */
2951 workset.emax
7398 Int emax=set->emax; /* limit value */ local
8005 Int emin, emax; /* .. */ local
[all...]
/external/python/cpython2/Modules/
H A Dselectmodule.c206 int imax, omax, emax, max; local
260 if ((emax=seq2set(efdlist, &efdset, efd2obj)) < 0)
264 if (emax > max) max = emax;
/external/python/cpython3/Modules/
H A Dselectmodule.c203 int imax, omax, emax, max; local
256 if ((emax=seq2set(efdlist, &efdset, efd2obj)) < 0)
261 if (emax > max) max = emax;
/external/python/cpython3/Modules/_decimal/
H A D_decimal.c741 Dec_CONTEXT_GET_SSIZE(emax)
899 "valid range for unsafe emax is [0, 1070000000]");
902 ctx->emax = x;
1252 PyObject *emax = Py_None; local
1264 &prec, &rounding, &emin, &emax, &capitals, &clamp, &status, &traps
1278 if (emax != Py_None && context_setemax(self, emax, NULL) < 0) {
1349 ctx->prec, mpd_round_string[ctx->round], ctx->emin, ctx->emax,
1455 ctx->prec, mpd_round_string[ctx->round], ctx->emin, ctx->emax,
4582 maxctx.emax
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_decimal.py1714 emax = C.MAX_EMAX if C else 999999999
1717 c = Context(Emax=emax, Emin=emin)
1720 c.prec = emax
1735 self.assertLessEqual(F(120984237, 9999999999), D("9e" + str(emax)))
1736 self.assertGreaterEqual(D("9e" + str(emax)), F(120984237, 9999999999))
2856 emax = random.randrange(1, 100)
2863 prec=prec, Emin=emin, Emax=emax,
2878 self.assertEqual(d.Emax, emax)
4059 self.assertRaises(AttributeError, setattr, c, 'emax', 100)
5286 emax
[all...]
/external/python/cpython2/Lib/
H A Ddecimal.py2061 # emax >= largest e such that 5**e < 10**p.
2062 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/
H A D_pydecimal.py2214 # emax >= largest e such that 5**e < 10**p.
2215 emax = p*93//65
2216 if ye >= len(str(emax)):
2225 if e > emax:
2243 emax = p*10//3
2244 if ye >= len(str(emax)):
2252 if e > emax:
/external/opencv/cv/include/
H A Dcv.h1069 searching at most emax leaves. */
1071 CvMat* results, CvMat* dist, int k CV_DEFAULT(2), int emax CV_DEFAULT(20));

Completed in 472 milliseconds