Searched refs:emin (Results 1 - 10 of 10) sorted by relevance

/external/python/cpython3/Modules/_decimal/libmpdec/
H A Dcontext.c89 ctx->emin=MPD_MIN_EMIN;
103 ctx->emin=MPD_MIN_EMIN;
117 ctx->emin=MPD_MIN_EMIN;
135 ctx->emin = 1 - ctx->emax;
161 return ctx->emin;
216 mpd_qsetemin(mpd_context_t *ctx, mpd_ssize_t emin) argument
218 if (emin > 0 || emin < MPD_MIN_EMIN) {
221 ctx->emin = emin;
[all...]
H A Dmpdecimal.c202 return ctx->emin - (ctx->prec - 1);
346 return mpd_adjexp(dec) >= ctx->emin;
356 return mpd_adjexp(dec) < ctx->emin;
722 workctx->emin = ctx->emin;
1797 if (!mpd_iszerocoeff(dec) && adjexp < ctx->emin) {
1798 /* Underflow is impossible, since exp < etiny=emin-prec+1
1799 * and exp > etop=emax-prec+1 would imply emax < emin. */
1803 else if (adjexp < ctx->emin) {
1818 /* At this point adjexp=exp+digits-1 < emin an
[all...]
H A Dmpdecimal.h218 #define MPD_EXP_CLAMP (-2000000001L) /* allows for emin=-999999999 in the tests */
263 mpd_ssize_t emin; /* min negative exp */ member in struct:mpd_context_t
345 int mpd_qsetemin(mpd_context_t *ctx, mpd_ssize_t emin);
/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):
213 def close_to_emax_less(prec, emax, emin):
218 def close_to_emax_greater(prec, emax, emin):
223 # Close to emin:
224 def close_to_emin_greater(prec, emax, emin):
227 str(randrange(rprec)), "E", str(emin)))
229 def close_to_emin_less(prec, emax, emin)
[all...]
H A Ddeccheck.py793 emin, emax = expts
794 if emin == 'rand':
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/icu/icu4c/source/i18n/
H A DdecContext.cpp69 context->emin=DEC_MIN_EMIN; /* .. balanced */
84 context->emin=-95; /* Emin */
95 context->emin=-383; /* Emin */
106 context->emin=-6143; /* Emin */
H A DdecContext.h48 /* emin -- must be in the range 0 through -999999999 */
93 int32_t emin; /* minimum negative exponent */ member in struct:__anon8080
H A DdecNumber.cpp66 /* tightly: digits, emax, and -emin in the context must be <= */
501 /* exponent (set.emax and set.emin), determining if */
728 if ((dn->exponent-1<set->emin-dn->digits)
1157 dcmul.emin=DEC_MIN_EMIN; /* [thanks to Math restrictions] */
1169 /*printf("emin=%ld\n", dcmul.emin); */
1347 /* same value. The exponent is not limited by emin/emax. */
1503 aset.emin=-DEC_MAX_MATH; /* .. */
2125 aset.emin=-DEC_MAX_MATH; /* .. */
2952 workset.emin
8005 Int emin, emax; /* .. */ local
[all...]
/external/python/cpython3/Modules/_decimal/
H A D_decimal.c742 Dec_CONTEXT_GET_SSIZE(emin)
879 "valid range for unsafe emin is [-1070000000, 0]");
882 ctx->emin = x;
1251 PyObject *emin = Py_None; local
1264 &prec, &rounding, &emin, &emax, &capitals, &clamp, &status, &traps
1275 if (emin != Py_None && context_setemin(self, emin, 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,
4583 maxctx.emin
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_decimal.py1715 emin = C.MIN_EMIN if C else -999999999
1717 c = Context(Emax=emax, Emin=emin)
2855 emin = random.randrange(-100, 0)
2863 prec=prec, Emin=emin, Emax=emax,
2877 self.assertEqual(d.Emin, emin)
5285 emin = random.randrange(-10000, 0)
5290 c = Context(prec=prec, rounding=round, Emin=emin, Emax=emax,
5296 self.assertEqual(c.Emin, emin)

Completed in 290 milliseconds