Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c724 mpd_workcontext(mpd_context_t *workctx, const mpd_context_t *ctx) in mpd_workcontext() argument
726 workctx->prec = ctx->prec; in mpd_workcontext()
727 workctx->emax = ctx->emax; in mpd_workcontext()
728 workctx->emin = ctx->emin; in mpd_workcontext()
729 workctx->round = ctx->round; in mpd_workcontext()
730 workctx->traps = 0; in mpd_workcontext()
731 workctx->status = 0; in mpd_workcontext()
732 workctx->newtrap = 0; in mpd_workcontext()
733 workctx->clamp = ctx->clamp; in mpd_workcontext()
734 workctx->allcr = ctx->allcr; in mpd_workcontext()
[all …]
/external/python/cpython3/Modules/_decimal/
D_decimal.c3196 mpd_context_t workctx; in dec_as_long() local
3216 workctx = *CTX(context); in dec_as_long()
3217 workctx.round = round; in dec_as_long()
3218 mpd_qround_to_int(x, MPD(dec), &workctx, &status); in dec_as_long()
3372 mpd_context_t workctx; in PyDec_ToIntegralValue() local
3380 workctx = *CTX(context); in PyDec_ToIntegralValue()
3386 if (!mpd_qsetround(&workctx, round)) { in PyDec_ToIntegralValue()
3396 mpd_qround_to_int(MPD(result), MPD(dec), &workctx, &status); in PyDec_ToIntegralValue()
3413 mpd_context_t workctx; in PyDec_ToIntegralExact() local
3421 workctx = *CTX(context); in PyDec_ToIntegralExact()
[all …]