diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-22 10:30:25 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-22 10:30:25 +0000 |
commit | ef54f709b94a0bd2bd113bf78dd3a782de913d8c (patch) | |
tree | 42b8529bf39bc8aa34af01b7f307a28a18dddc6a /src/fma.c | |
parent | 822e16eb825ff9dc45ef555884ed37e4a87424e8 (diff) | |
download | mpfr-ef54f709b94a0bd2bd113bf78dd3a782de913d8c.tar.gz |
[src/fma.c] fixed last failure
[tests/tfma.c] removed debug stuff
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12396 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/fma.c')
-rw-r--r-- | src/fma.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -261,9 +261,10 @@ mpfr_fma (mpfr_ptr s, mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z, MPFR_BLOCK_DECL (flags); if (MPFR_GET_EXP (u) > MPFR_GET_EXP (z) && - MPFR_GET_EXP (u) - MPFR_GET_EXP (z) > MPFR_PREC (u) + 1) + MPFR_GET_EXP (u) - MPFR_GET_EXP (z) > MPFR_PREC (s) + 1) { - /* |z| < ulp(u)/4, therefore one can use z instead of z/4, + /* |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, including when u is a power of 2! */ zz = z; } |