diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-22 17:08:57 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-22 17:08:57 +0000 |
commit | cefba2ec2d1121cbc5e528bee05f378e7e194aff (patch) | |
tree | 89abf26bd0f1b837a2633be84e62d73eabdba663 | |
parent | 7f4badc6b497fc60648e2cef4fcebc4921243e21 (diff) | |
download | mpfr-cefba2ec2d1121cbc5e528bee05f378e7e194aff.tar.gz |
Disable sub1sp in add.c and in sub.c since it provides some bugs on spark (Log/acos/asin and atan tests failed but not tsub or tsub1sp).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2592 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | acos.c | 8 | ||||
-rw-r--r-- | add.c | 4 | ||||
-rw-r--r-- | sub.c | 4 |
3 files changed, 8 insertions, 8 deletions
@@ -121,10 +121,10 @@ mpfr_acos (mpfr_ptr acos, mpfr_srcptr x, mp_rnd_t rnd_mode) else realprec += __gmpfr_ceil_log2 ((double) realprec); - mpfr_clear (tmp); - mpfr_clear (arcc); - } - + mpfr_clear (tmp); + mpfr_clear (arcc); + } + mpfr_clear (xp); return inexact; } @@ -81,10 +81,10 @@ mpfr_add (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) if (MPFR_UNLIKELY(MPFR_SIGN(b) != MPFR_SIGN(c))) { /* signs differ, it's a subtraction */ - if (MPFR_LIKELY(MPFR_PREC(a) == MPFR_PREC(b) + /* if (MPFR_LIKELY(MPFR_PREC(a) == MPFR_PREC(b) && MPFR_PREC(b) == MPFR_PREC(c))) return mpfr_sub1sp(a,b,c,rnd_mode); - else + else*/ return mpfr_sub1(a, b, c, rnd_mode); } else @@ -82,10 +82,10 @@ mpfr_sub (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) if (MPFR_LIKELY(MPFR_SIGN(b) == MPFR_SIGN(c))) { /* signs are equal, it's a real subtraction */ - if (MPFR_LIKELY(MPFR_PREC(a) == MPFR_PREC(b) + /* if (MPFR_LIKELY(MPFR_PREC(a) == MPFR_PREC(b) && MPFR_PREC(b) == MPFR_PREC(c))) return mpfr_sub1sp(a,b,c,rnd_mode); - else + else*/ return mpfr_sub1(a, b, c, rnd_mode); } else |