Lines Matching refs:ump
197 mpfr_t tmp, ump;
242 mpfr_init2 (ump, 64);
244 mpfr_sub (ump, x, tmp, MPFR_RNDD);
246 mpfr_div (ump, ump, tmp, MPFR_RNDD);
249 if (mpfr_cmp_ui (ump, __gmpfr_emax) >= 0)
252 mpfr_clear (ump);
271 mpfr_set_prec (ump, prec);
286 mpfr_const_euler (ump, MPFR_RNDN); /* 0.577 -> EXP(ump)=0 */
287 mpfr_add (tmp, tmp, ump, MPFR_RNDN);
288 /* error <= 1/2 + 1/2*2^(EXP(ump)-EXP(tmp)) + 2^(te-EXP(tmp)+err)
289 <= 1/2 + 2^(MAX(EXP(ump), te+err+1) - EXP(tmp))
290 <= 2^(MAX(0, 1 + MAX(EXP(ump), te+err+1) - EXP(tmp))) */
294 mpfr_log (ump, x, MPFR_RNDN);
295 mpfr_add (tmp, tmp, ump, MPFR_RNDN);
296 /* same formula as above, except now EXP(ump) is not 0 */
298 if (MPFR_LIKELY (!MPFR_IS_ZERO (ump)))
299 err = MAX (MPFR_GET_EXP (ump), err);
306 mpfr_set_prec (ump, prec);
312 mpfr_clear (ump);