summaryrefslogtreecommitdiff
path: root/src/fma.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-12 08:29:47 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-12 08:29:47 +0000
commitf371c8ed9899a9c5b5044663ec33cb6e0e75d5c9 (patch)
tree3579dc0fe4808004c4c8178db28d586bd061153c /src/fma.c
parente944bbccdddd6afb126908c03c23b8909e73dda3 (diff)
downloadmpfr-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fma.c b/src/fma.c
index 9fa113099..a1d0d4100 100644
--- a/src/fma.c
+++ b/src/fma.c
@@ -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,