Home
last modified time | relevance | path

Searched refs:workctx (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c750 mpd_workcontext(mpd_context_t *workctx, const mpd_context_t *ctx) in mpd_workcontext() argument
752 workctx->prec = ctx->prec; in mpd_workcontext()
753 workctx->emax = ctx->emax; in mpd_workcontext()
754 workctx->emin = ctx->emin; in mpd_workcontext()
755 workctx->round = ctx->round; in mpd_workcontext()
756 workctx->traps = 0; in mpd_workcontext()
757 workctx->status = 0; in mpd_workcontext()
758 workctx->newtrap = 0; in mpd_workcontext()
759 workctx->clamp = ctx->clamp; in mpd_workcontext()
760 workctx->allcr = ctx->allcr; in mpd_workcontext()
[all …]
/external/python/cpython3/Modules/_decimal/
D_decimal.c3341 mpd_context_t workctx; in dec_as_long() local
3361 workctx = *CTX(context); in dec_as_long()
3362 workctx.round = round; in dec_as_long()
3363 mpd_qround_to_int(x, MPD(dec), &workctx, &status); in dec_as_long()
3517 mpd_context_t workctx; in PyDec_ToIntegralValue() local
3525 workctx = *CTX(context); in PyDec_ToIntegralValue()
3531 if (!mpd_qsetround(&workctx, round)) { in PyDec_ToIntegralValue()
3541 mpd_qround_to_int(MPD(result), MPD(dec), &workctx, &status); in PyDec_ToIntegralValue()
3558 mpd_context_t workctx; in PyDec_ToIntegralExact() local
3566 workctx = *CTX(context); in PyDec_ToIntegralExact()
[all …]