Lines Matching refs:tprec
38 mpfr_prec_t tprec, tprec0; in mpfr_grandom() local
77 tprec = tprec0; in mpfr_grandom()
80 mpz_urandomb (xp, rstate, tprec); in mpfr_grandom()
81 mpz_urandomb (yp, rstate, tprec); in mpfr_grandom()
86 while (mpz_sizeinbase (s, 2) > tprec * 2); in mpfr_grandom()
105 if (mpz_sizeinbase (s, 2) <= 2 * tprec) in mpfr_grandom()
115 tprec += 32; in mpfr_grandom()
120 if (mpz_sizeinbase (s, 2) > tprec * 2) in mpfr_grandom()
137 mpfr_set_prec (sfr, 2 * tprec); in mpfr_grandom()
138 mpfr_set_prec (l, tprec); in mpfr_grandom()
140 mpfr_mul_2si (sfr, sfr, -2 * tprec, MPFR_RNDN); /* exact */ in mpfr_grandom()
147 mpfr_set_prec (r1, tprec); in mpfr_grandom()
149 mpfr_div_2ui (r1, r1, tprec, MPFR_RNDN); /* exact */ in mpfr_grandom()
152 if (MPFR_CAN_ROUND (r1, tprec - 2, MPFR_PREC (rop1), rnd)) in mpfr_grandom()
156 mpfr_set_prec (r2, tprec); in mpfr_grandom()
158 mpfr_div_2ui (r2, r2, tprec, MPFR_RNDN); /* exact */ in mpfr_grandom()
161 if (MPFR_CAN_ROUND (r2, tprec - 2, MPFR_PREC (rop2), rnd)) in mpfr_grandom()
174 tprec += 32; in mpfr_grandom()