summaryrefslogtreecommitdiff
path: root/mul.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-12 17:58:40 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-12 17:58:40 +0000
commitb39415fbbf6127c1bea4c6078fd09d4eadd9a2a1 (patch)
tree85d73ccbe0643f2d898b4a6a2975ec9a9463a197 /mul.c
parentb7307b74a0d4d766c1ba2c5d14f8ef918debc597 (diff)
downloadmpfr-b39415fbbf6127c1bea4c6078fd09d4eadd9a2a1.tar.gz
Remove MPFR_ASSERTN(0) and add MPFR_ASSERTD(last condition) instead.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2696 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mul.c')
-rw-r--r--mul.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mul.c b/mul.c
index 2699d715f..64be484ca 100644
--- a/mul.c
+++ b/mul.c
@@ -69,14 +69,13 @@ mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
MPFR_RET_NAN;
}
}
- else if (MPFR_IS_ZERO(b) || MPFR_IS_ZERO(c))
+ else
{
+ MPFR_ASSERTD(MPFR_IS_ZERO(b) || MPFR_IS_ZERO(c));
MPFR_SET_SIGN(a, sign_product);
MPFR_SET_ZERO(a);
MPFR_RET(0); /* 0 * 0 is exact */
}
- /* Should never reach here */
- MPFR_ASSERTN(0);
}
MPFR_CLEAR_FLAGS(a);
sign_product = MPFR_MULT_SIGN( MPFR_SIGN(b) , MPFR_SIGN(c) );