Lines Matching refs:rnd_mode
33 int mpfr_mul2 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode);
35 mpfr_mul3 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) in mpfr_mul3() argument
130 MPFR_PREC (a), rnd_mode, &inexact); in mpfr_mul3()
146 return mpfr_overflow (a, rnd_mode, sign_product); in mpfr_mul3()
154 if (rnd_mode == MPFR_RNDN && in mpfr_mul3()
157 rnd_mode = MPFR_RNDZ; in mpfr_mul3()
158 return mpfr_underflow (a, rnd_mode, sign_product); in mpfr_mul3()
167 mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) in mpfr_mul() argument
173 if (rnd_mode == MPFR_RNDF) in mpfr_mul()
174 return mpfr_mul2 (a, b, c, rnd_mode); in mpfr_mul()
189 inexact2 = mpfr_mul3 (ta, tb, tc, rnd_mode); in mpfr_mul()
193 inexact1 = mpfr_mul2 (a, b, c, rnd_mode); in mpfr_mul()
210 mpfr_print_rnd_mode (rnd_mode), in mpfr_mul()
265 mpfr_mul_1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode, in mpfr_mul_1() argument
301 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1()
309 ((rnd_mode == MPFR_RNDN && rb) || in mpfr_mul_1()
310 (MPFR_IS_LIKE_RNDA(rnd_mode, MPFR_IS_NEG (a)) && (rb | sb)))) in mpfr_mul_1()
316 if (rnd_mode == MPFR_RNDN && in mpfr_mul_1()
319 rnd_mode = MPFR_RNDZ; in mpfr_mul_1()
320 return mpfr_underflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1()
326 if ((rb == 0 && sb == 0) || rnd_mode == MPFR_RNDF) in mpfr_mul_1()
331 else if (rnd_mode == MPFR_RNDN) in mpfr_mul_1()
338 else if (MPFR_IS_LIKE_RNDZ(rnd_mode, MPFR_IS_NEG(a))) in mpfr_mul_1()
352 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1()
366 mpfr_mul_1n (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) in mpfr_mul_1n() argument
394 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1n()
406 ((rnd_mode == MPFR_RNDN && rb) || in mpfr_mul_1n()
407 (MPFR_IS_LIKE_RNDA(rnd_mode, MPFR_IS_NEG (a)) && (rb | sb)))) in mpfr_mul_1n()
413 if (rnd_mode == MPFR_RNDN && in mpfr_mul_1n()
416 rnd_mode = MPFR_RNDZ; in mpfr_mul_1n()
417 return mpfr_underflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1n()
423 if ((rb == 0 && sb == 0) || rnd_mode == MPFR_RNDF) in mpfr_mul_1n()
428 else if (rnd_mode == MPFR_RNDN) in mpfr_mul_1n()
435 else if (MPFR_IS_LIKE_RNDZ(rnd_mode, MPFR_IS_NEG(a))) in mpfr_mul_1n()
449 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_1n()
464 mpfr_mul_2 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode, in mpfr_mul_2() argument
524 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_2()
534 ((rnd_mode == MPFR_RNDN && rb) || in mpfr_mul_2()
535 (MPFR_IS_LIKE_RNDA(rnd_mode, MPFR_IS_NEG (a)) && (rb | sb)))) in mpfr_mul_2()
539 if (rnd_mode == MPFR_RNDN && in mpfr_mul_2()
542 rnd_mode = MPFR_RNDZ; in mpfr_mul_2()
543 return mpfr_underflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_2()
549 if ((rb == 0 && sb == 0) || rnd_mode == MPFR_RNDF) in mpfr_mul_2()
554 else if (rnd_mode == MPFR_RNDN) in mpfr_mul_2()
561 else if (MPFR_IS_LIKE_RNDZ(rnd_mode, MPFR_IS_NEG(a))) in mpfr_mul_2()
576 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_2()
588 mpfr_mul_3 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode, in mpfr_mul_3() argument
659 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_3()
670 ((rnd_mode == MPFR_RNDN && rb) || in mpfr_mul_3()
671 (MPFR_IS_LIKE_RNDA(rnd_mode, MPFR_IS_NEG (a)) && (rb | sb)))) in mpfr_mul_3()
675 if (rnd_mode == MPFR_RNDN && in mpfr_mul_3()
679 rnd_mode = MPFR_RNDZ; in mpfr_mul_3()
680 return mpfr_underflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_3()
686 if ((rb == 0 && sb == 0) || rnd_mode == MPFR_RNDF) in mpfr_mul_3()
691 else if (rnd_mode == MPFR_RNDN) in mpfr_mul_3()
698 else if (MPFR_IS_LIKE_RNDZ(rnd_mode, MPFR_IS_NEG(a))) in mpfr_mul_3()
714 return mpfr_overflow (a, rnd_mode, MPFR_SIGN(a)); in mpfr_mul_3()
732 mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) in mpfr_mul() argument
745 mpfr_get_prec (c), mpfr_log_prec, c, rnd_mode), in mpfr_mul()
803 return mpfr_mul_1 (a, b, c, rnd_mode, aq); in mpfr_mul()
806 return mpfr_mul_2 (a, b, c, rnd_mode, aq); in mpfr_mul()
809 return mpfr_mul_1n (a, b, c, rnd_mode); in mpfr_mul()
812 return mpfr_mul_3 (a, b, c, rnd_mode, aq); in mpfr_mul()
827 return mpfr_overflow (a, rnd_mode, sign); in mpfr_mul()
829 return mpfr_underflow (a, rnd_mode == MPFR_RNDN ? MPFR_RNDZ : rnd_mode, in mpfr_mul()
947 return mpfr_mul (a, b_tmp, c_tmp, rnd_mode); in mpfr_mul()
954 return mpfr_mul (a, b_tmp, b_tmp, rnd_mode); in mpfr_mul()
1054 if (rnd_mode == MPFR_RNDF) in mpfr_mul()
1055 rnd_mode = MPFR_RNDZ; in mpfr_mul()
1060 aq + (rnd_mode == MPFR_RNDN)))) in mpfr_mul()
1086 MPFR_RNDRAW (inexact, a, tmp, bq + cq, rnd_mode, sign, ax2++); in mpfr_mul()
1091 return mpfr_overflow (a, rnd_mode, sign); in mpfr_mul()
1098 if (rnd_mode == MPFR_RNDN in mpfr_mul()
1101 rnd_mode = MPFR_RNDZ; in mpfr_mul()
1102 return mpfr_underflow (a, rnd_mode, sign); in mpfr_mul()