diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-03-25 17:28:45 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-03-25 17:28:45 +0000 |
commit | 5c5b754d1ff03dbede8da5add24499bd2f069757 (patch) | |
tree | b8e2f75df13b898505cca5033ac99ffa0821f198 | |
parent | b0988a7bd4c813eb9192cccdce9e18dd347a1771 (diff) | |
download | mpfr-5c5b754d1ff03dbede8da5add24499bd2f069757.tar.gz |
[src/sub1.c] Bug fix for UBF and MPFR_RNDF.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13810 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/sub1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sub1.c b/src/sub1.c index 0256e43cd..1e9fd72ae 100644 --- a/src/sub1.c +++ b/src/sub1.c @@ -115,6 +115,9 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) /* If diff_exp == MPFR_EXP_MAX, the actual value can be larger, but anyway, since mpfr_exp_t >= mp_size_t, this will be the case c small below, and the exact value does not matter. */ + /* mpfr_set4 below used with MPFR_RNDF does not support UBF. */ + if (rnd_mode == MPFR_RNDF) + rnd_mode = MPFR_RNDN; } else { |