summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-12-22 17:08:57 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-12-22 17:08:57 +0000
commitcefba2ec2d1121cbc5e528bee05f378e7e194aff (patch)
tree89abf26bd0f1b837a2633be84e62d73eabdba663
parent7f4badc6b497fc60648e2cef4fcebc4921243e21 (diff)
downloadmpfr-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.c8
-rw-r--r--add.c4
-rw-r--r--sub.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/acos.c b/acos.c
index 36ce2976d..70b3c598b 100644
--- a/acos.c
+++ b/acos.c
@@ -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;
}
diff --git a/add.c b/add.c
index 01e7455bf..c46bf50ae 100644
--- a/add.c
+++ b/add.c
@@ -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
diff --git a/sub.c b/sub.c
index 409f87a6c..3126f5ef2 100644
--- a/sub.c
+++ b/sub.c
@@ -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