Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c1377 mpd_context_t maxcontext; in _c32_qget_u64() local
1405 mpd_maxcontext(&maxcontext); in _c32_qget_u64()
1406 mpd_qrescale(&tmp, a, 0, &maxcontext, &maxcontext.status); in _c32_qget_u64()
1407 maxcontext.status &= ~MPD_Rounded; in _c32_qget_u64()
1408 if (maxcontext.status != 0) { in _c32_qget_u64()
1409 *status |= (maxcontext.status|MPD_Invalid_operation); /* GCOV_NOT_REACHED */ in _c32_qget_u64()
3461 mpd_context_t maxcontext; in mpd_qadd_ssize() local
3464 mpd_maxcontext(&maxcontext); in mpd_qadd_ssize()
3465 mpd_qsset_ssize(&bb, b, &maxcontext, status); in mpd_qadd_ssize()
3475 mpd_context_t maxcontext; in mpd_qadd_uint() local
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py280 maxcontext = P.Context( variable
287 maxcontext.clamp = 0
290 maxcontext.traps = copy(context.p.traps)
291 maxcontext.clear_flags()
294 dec = maxcontext.create_decimal(value)
295 if maxcontext.flags[P.Inexact] or \
296 maxcontext.flags[P.Rounded] or \
297 maxcontext.flags[P.Clamped] or \
298 maxcontext.flags[P.InvalidOperation]:
300 if maxcontext.flags[P.FloatOperation]: