Lines Matching refs:maxcontext

1377     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
3478 mpd_maxcontext(&maxcontext); in mpd_qadd_uint()
3479 mpd_qsset_uint(&bb, b, &maxcontext, status); in mpd_qadd_uint()
3489 mpd_context_t maxcontext; in mpd_qsub_ssize() local
3492 mpd_maxcontext(&maxcontext); in mpd_qsub_ssize()
3493 mpd_qsset_ssize(&bb, b, &maxcontext, status); in mpd_qsub_ssize()
3503 mpd_context_t maxcontext; in mpd_qsub_uint() local
3506 mpd_maxcontext(&maxcontext); in mpd_qsub_uint()
3507 mpd_qsset_uint(&bb, b, &maxcontext, status); in mpd_qsub_uint()
3550 mpd_context_t maxcontext; in mpd_qadd_i64() local
3553 mpd_maxcontext(&maxcontext); in mpd_qadd_i64()
3554 mpd_qset_i64(&bb, b, &maxcontext, status); in mpd_qadd_i64()
3564 mpd_context_t maxcontext; in mpd_qadd_u64() local
3567 mpd_maxcontext(&maxcontext); in mpd_qadd_u64()
3568 mpd_qset_u64(&bb, b, &maxcontext, status); in mpd_qadd_u64()
3612 mpd_context_t maxcontext; in mpd_qsub_i64() local
3615 mpd_maxcontext(&maxcontext); in mpd_qsub_i64()
3616 mpd_qset_i64(&bb, b, &maxcontext, status); in mpd_qsub_i64()
3626 mpd_context_t maxcontext; in mpd_qsub_u64() local
3629 mpd_maxcontext(&maxcontext); in mpd_qsub_u64()
3630 mpd_qset_u64(&bb, b, &maxcontext, status); in mpd_qsub_u64()
4030 mpd_context_t maxcontext; in mpd_qdiv_ssize() local
4033 mpd_maxcontext(&maxcontext); in mpd_qdiv_ssize()
4034 mpd_qsset_ssize(&bb, b, &maxcontext, status); in mpd_qdiv_ssize()
4044 mpd_context_t maxcontext; in mpd_qdiv_uint() local
4047 mpd_maxcontext(&maxcontext); in mpd_qdiv_uint()
4048 mpd_qsset_uint(&bb, b, &maxcontext, status); in mpd_qdiv_uint()
4091 mpd_context_t maxcontext; in mpd_qdiv_i64() local
4094 mpd_maxcontext(&maxcontext); in mpd_qdiv_i64()
4095 mpd_qset_i64(&bb, b, &maxcontext, status); in mpd_qdiv_i64()
4105 mpd_context_t maxcontext; in mpd_qdiv_u64() local
4108 mpd_maxcontext(&maxcontext); in mpd_qdiv_u64()
4109 mpd_qset_u64(&bb, b, &maxcontext, status); in mpd_qdiv_u64()
4547 mpd_context_t varcontext, maxcontext; in mpd_qln10() local
4567 mpd_maxcontext(&maxcontext); in mpd_qln10()
4569 maxcontext.prec = prec; in mpd_qln10()
4570 _mpd_apply_round_excess(result, rnd, &maxcontext, status); in mpd_qln10()
4585 mpd_qsub(&tmp, &tmp, &one, &maxcontext, status); in mpd_qln10()
4586 mpd_qadd(result, result, &tmp, &maxcontext, status); in mpd_qln10()
4593 maxcontext.prec = prec; in mpd_qln10()
4594 mpd_qfinalize(result, &maxcontext, status); in mpd_qln10()
4683 mpd_context_t varcontext, maxcontext; in _mpd_qln() local
4738 mpd_maxcontext(&maxcontext); in _mpd_qln()
4757 _mpd_qsub(&tmp, &v, &one, &maxcontext, &maxcontext.status); in _mpd_qln()
4758 if (maxcontext.status & MPD_Errors) { in _mpd_qln()
4803 mpd_qsub(&tmp, &tmp, &one, &maxcontext, status); in _mpd_qln()
4804 mpd_qadd(z, z, &tmp, &maxcontext, status); in _mpd_qln()
4835 mpd_qmul_ssize(&tmp, &v, t, &maxcontext, status); in _mpd_qln()
4836 mpd_qadd(result, &tmp, z, &maxcontext, status); in _mpd_qln()
5856 mpd_context_t maxcontext; in mpd_qmul_ssize() local
5859 mpd_maxcontext(&maxcontext); in mpd_qmul_ssize()
5860 mpd_qsset_ssize(&bb, b, &maxcontext, status); in mpd_qmul_ssize()
5870 mpd_context_t maxcontext; in mpd_qmul_uint() local
5873 mpd_maxcontext(&maxcontext); in mpd_qmul_uint()
5874 mpd_qsset_uint(&bb, b, &maxcontext, status); in mpd_qmul_uint()
5913 mpd_context_t maxcontext; in mpd_qmul_i64() local
5916 mpd_maxcontext(&maxcontext); in mpd_qmul_i64()
5917 mpd_qset_i64(&bb, b, &maxcontext, status); in mpd_qmul_i64()
5927 mpd_context_t maxcontext; in mpd_qmul_u64() local
5930 mpd_maxcontext(&maxcontext); in mpd_qmul_u64()
5931 mpd_qset_u64(&bb, b, &maxcontext, status); in mpd_qmul_u64()
6645 mpd_context_t maxcontext; in _mpd_qpowmod_uint() local
6647 mpd_maxcontext(&maxcontext); in _mpd_qpowmod_uint()
6654 _mpd_qmul_exact(result, result, base, &maxcontext, status); in _mpd_qpowmod_uint()
6655 mpd_qrem(result, result, mod, &maxcontext, status); in _mpd_qpowmod_uint()
6657 _mpd_qmul_exact(base, base, base, &maxcontext, status); in _mpd_qpowmod_uint()
6658 mpd_qrem(base, base, mod, &maxcontext, status); in _mpd_qpowmod_uint()
6669 mpd_context_t maxcontext; in mpd_qpowmod() local
6723 mpd_maxcontext(&maxcontext); in mpd_qpowmod()
6725 mpd_qrescale(&tmod, mod, 0, &maxcontext, &maxcontext.status); in mpd_qpowmod()
6726 if (maxcontext.status&MPD_Errors) { in mpd_qpowmod()
6727 mpd_seterror(result, maxcontext.status&MPD_Errors, status); in mpd_qpowmod()
6730 maxcontext.status = 0; in mpd_qpowmod()
6733 mpd_qround_to_int(&tbase, base, &maxcontext, status); in mpd_qpowmod()
6738 mpd_qround_to_int(&texp, exp, &maxcontext, status); in mpd_qpowmod()
6743 mpd_qrem(&tbase, &tbase, &tmod, &maxcontext, status); in mpd_qpowmod()
6745 mpd_qrem(result, result, &tmod, &maxcontext, status); in mpd_qpowmod()
6746 _mpd_qmul_exact(&tbase, &tbase, result, &maxcontext, status); in mpd_qpowmod()
6747 mpd_qrem(&tbase, &tbase, &tmod, &maxcontext, status); in mpd_qpowmod()
6768 _mpd_qmul_exact(result, result, &tbase, &maxcontext, status); in mpd_qpowmod()
6769 mpd_qrem(result, result, &tmod, &maxcontext, status); in mpd_qpowmod()
6771 _mpd_qmul_exact(&tbase, &tbase, &tbase, &maxcontext, status); in mpd_qpowmod()
6772 mpd_qrem(&tbase, &tbase, &tmod, &maxcontext, status); in mpd_qpowmod()
6773 mpd_qdivint(&texp, &texp, &two, &maxcontext, status); in mpd_qpowmod()
7278 mpd_context_t varcontext, maxcontext; in _mpd_qreciprocal() local
7301 mpd_maxcontext(&maxcontext); in _mpd_qreciprocal()
7302 varcontext.round = maxcontext.round = MPD_ROUND_TRUNC; in _mpd_qreciprocal()
7303 varcontext.emax = maxcontext.emax = MPD_MAX_EMAX + 100; in _mpd_qreciprocal()
7304 varcontext.emin = maxcontext.emin = MPD_MIN_EMIN - 100; in _mpd_qreciprocal()
7305 maxcontext.prec = MPD_MAX_PREC + 100; in _mpd_qreciprocal()
7315 _mpd_qmul_exact(&s, z, z, &maxcontext, status); in _mpd_qreciprocal()
7329 _mpd_qmul_exact(&s, z, &two, &maxcontext, status); in _mpd_qreciprocal()
7333 _mpd_qsub_exact(z, &s, &t, &maxcontext, status); in _mpd_qreciprocal()
7573 mpd_context_t varcontext, maxcontext; in _mpd_qinvroot() local
7625 mpd_maxcontext(&maxcontext); in _mpd_qinvroot()
7634 mpd_qmul(&s, z, z, &maxcontext, &workstatus); in _mpd_qinvroot()
7644 mpd_qsub(&t, &three, &t, &maxcontext, &workstatus); in _mpd_qinvroot()
7646 mpd_qmul(z, z, &one_half, &maxcontext, &workstatus); in _mpd_qinvroot()
7709 mpd_context_t maxcontext; in mpd_qsqrt() local
7742 mpd_maxcontext(&maxcontext); in mpd_qsqrt()
7779 _mpd_qdivmod(&q, &r, &c, result, &maxcontext, &maxcontext.status); in mpd_qsqrt()
7781 mpd_seterror(result, maxcontext.status&MPD_Errors, status); in mpd_qsqrt()
7787 _mpd_qadd_exact(result, result, &q, &maxcontext, &maxcontext.status); in mpd_qsqrt()
7789 mpd_seterror(result, maxcontext.status&MPD_Errors, status); in mpd_qsqrt()
7792 _mpd_qdivmod(result, &r, result, &two, &maxcontext, &maxcontext.status); in mpd_qsqrt()
7796 _mpd_qmul_exact(&r, result, result, &maxcontext, &maxcontext.status); in mpd_qsqrt()
7798 mpd_seterror(result, maxcontext.status&MPD_Errors, status); in mpd_qsqrt()
7829 maxcontext = *ctx; in mpd_qsqrt()
7830 maxcontext.round = MPD_ROUND_HALF_EVEN; in mpd_qsqrt()
7831 mpd_qfinalize(result, &maxcontext, status); in mpd_qsqrt()