diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-12 08:29:47 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-12 08:29:47 +0000 |
commit | f371c8ed9899a9c5b5044663ec33cb6e0e75d5c9 (patch) | |
tree | 3579dc0fe4808004c4c8178db28d586bd061153c /src/fma.c | |
parent | e944bbccdddd6afb126908c03c23b8909e73dda3 (diff) | |
download | mpfr-f371c8ed9899a9c5b5044663ec33cb6e0e75d5c9.tar.gz |
[src/fma.c] Removed a redundant test since the second condition of
the && expression implies the first one.
Note: This test came from the time when the precision type was unsigned,
in order to make sure that the result of the subtraction was positive.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12583 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/fma.c')
-rw-r--r-- | src/fma.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -260,8 +260,7 @@ mpfr_fma (mpfr_ptr s, mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z, mpfr_srcptr zz; MPFR_BLOCK_DECL (flags); - if (MPFR_GET_EXP (u) > MPFR_GET_EXP (z) && - MPFR_GET_EXP (u) - MPFR_GET_EXP (z) > MPFR_PREC (s) + 1) + if (MPFR_GET_EXP (u) - MPFR_GET_EXP (z) > MPFR_PREC (s) + 1) { /* |z| < ulp(u)/4, where the ulp is meant with the precision of the result s, therefore one can use z instead of z/4, |