Home
last modified time | relevance | path

Searched refs:precx (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/external/lgpl3/mpfr/dist/tests/
H A Dtcomparisons.c36 mpfr_prec_t precx, precy; in cmp_tests() local
40 precx = (randlimb () % 17) * 11 + MPFR_PREC_MIN; in cmp_tests()
42 mpfr_set_prec (x, precx); in cmp_tests()
97 mpfr_prec_t precx; in eq_tests() local
99 precx = (randlimb () % 17) * 11 + MPFR_PREC_MIN; in eq_tests()
100 mpfr_set_prec (x, precx); in eq_tests()
101 mpfr_set_prec (y, precx + (randlimb () % 64)); in eq_tests()
H A Dtcan_round.c232 int precx, precy, err; in check_can_round() local
241 for (precx = 3 * GMP_NUMB_BITS - 3; precx <= 3 * GMP_NUMB_BITS + 3; precx++) in check_can_round()
243 mpfr_set_prec (x, precx); in check_can_round()
244 for (precy = precx - 4; precy <= precx + 4; precy++) in check_can_round()
254 mpfr_set_ui_2exp (x, 1, precx - 1, MPFR_RNDN); in check_can_round()
260 mpfr_set_ui_2exp (x, 1, precx, MPFR_RNDN); in check_can_round()
263 MPFR_ASSERTN (mpfr_get_exp (x) == precx); in check_can_round()
270 mpfr_set_ui_2exp (xinf, 1, precx - err, MPFR_RNDN); in check_can_round()
298 precx, precy, i, err, in check_can_round()
H A Dtdigamma.c63 int i, precx, precy[NPREC] = { 200, 400, 520, 1416 }; in bug20210206() local
74 for (precx = MPFR_PREC_MIN; precx < 150; precx++) in bug20210206()
76 mpfr_init2 (x, precx); in bug20210206()
H A Dtexp.c659 int precx, precy; in underflow_up() local
707 for (precx = 16; precx <= 128; precx += 16) in underflow_up()
709 mpfr_init2 (x, precx); in underflow_up()
732 precx, precy, e3 ? "mpfr_exp_3" : "mpfr_exp"); in underflow_up()
747 precx, precy, e3 ? "mpfr_exp_3" : "mpfr_exp"); in underflow_up()
776 for (precx = sizeof(mpfr_exp_t) * CHAR_BIT + 1; precx <= 81; precx += 8) in underflow_up()
778 mpfr_init2 (x, precx); in underflow_up()
811 precx = sizeof(mpfr_exp_t) * CHAR_BIT + 2 * precy + 8; in underflow_up()
812 mpfr_init2 (x, precx); in underflow_up()
854 precx, precy); in underflow_up()
[all …]
H A Dtpow_all.c656 int precx; in overflow_inv() local
665 for (precx = 10; precx <= 100; precx += 90) in overflow_inv()
667 const char *sp = precx == 10 ? in overflow_inv()
670 mpfr_init2 (x, precx); in overflow_inv()
702 (precx > 10 || t == 1)) || in overflow_inv()
704 (precx > 10 || t <= 2)); in overflow_inv()
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dfma.c107 mpfr_prec_t precx, precy; in mpfr_fma() local
126 precx = MPFR_PREC (x); in mpfr_fma()
135 if (precx == precy && e <= __gmpfr_emax && e > __gmpfr_emin) in mpfr_fma()
137 if (precx < GMP_NUMB_BITS && in mpfr_fma()
138 MPFR_PREC(z) == precx && in mpfr_fma()
139 MPFR_PREC(s) == precx) in mpfr_fma()
146 MPFR_PREC(u) = MPFR_PREC(zz) = 2 * precx; in mpfr_fma()
217 MPFR_ASSERTN (precx + precy <= MPFR_PREC_MAX); in mpfr_fma()
218 MPFR_GROUP_INIT_1 (group, precx + precy, u); in mpfr_fma()
H A Dget_f.c36 mpfr_prec_t precx, precy; in mpfr_get_f() local
83 precx = (mpfr_prec_t) sx * GMP_NUMB_BITS; in mpfr_get_f()
93 if (precy + sh <= precx) /* we can copy directly */ in mpfr_get_f()
122 mpfr_init2 (z, precx - sh); in mpfr_get_f()
H A Dstrtofr.c460 mpfr_prec_t precx, prec, ysize_bits, pstr_size; in parsed_string_to_mpfr() local
471 precx = MPFR_GET_PREC (x); in parsed_string_to_mpfr()
472 prec = precx + MPFR_INT_CEIL_LOG2 (precx); in parsed_string_to_mpfr()
872 exact, err, precx)); in parsed_string_to_mpfr()
885 precx + (rnd == MPFR_RNDN))) in parsed_string_to_mpfr()
895 pstr->negative, precx, rnd, &res)) in parsed_string_to_mpfr()
/netbsd-src/external/lgpl3/mpfr/dist/
H A DChangeLog32577 In get_f.c, updated the case precy + sh > precx: this one was correct,
32587 precy + sh <= precx.