summaryrefslogtreecommitdiff
path: root/src/mulders.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-27 10:25:08 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-27 10:25:08 +0000
commit7e27f0a730c2394a4748dcbc86f7bfdad340b3e3 (patch)
treeb46ab5e0f5c26399332030ccfb7b7cebfd65b1a4 /src/mulders.c
parent82355dc13cc7e61312fe615a7741899268969da7 (diff)
downloadmpfr-7e27f0a730c2394a4748dcbc86f7bfdad340b3e3.tar.gz
[src/mulders.c] Replaced MPFR_ASSERTD with constant expression
by MPFR_ASSERTN. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7175 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mulders.c')
-rw-r--r--src/mulders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mulders.c b/src/mulders.c
index fe6635599..0acdf13e7 100644
--- a/src/mulders.c
+++ b/src/mulders.c
@@ -55,7 +55,7 @@ mpfr_mulhigh_n (mp_ptr rp, mp_srcptr np, mp_srcptr mp, mp_size_t n)
{
mp_size_t k;
- MPFR_ASSERTD (MPFR_MULHIGH_TAB_SIZE >= 8); /* so that 3*(n/4) > n/2 */
+ MPFR_ASSERTN (MPFR_MULHIGH_TAB_SIZE >= 8); /* so that 3*(n/4) > n/2 */
k = MPFR_LIKELY (n < MPFR_MULHIGH_TAB_SIZE) ? mulhigh_ktab[n] : 3*(n/4);
MPFR_ASSERTD (k == -1 || k == 0 || (k > n/2 && k < n));
if (k < 0)
@@ -90,7 +90,7 @@ mpfr_sqrhigh_n (mp_ptr rp, mp_srcptr np, mp_size_t n)
{
mp_size_t k;
- MPFR_ASSERTD (MPFR_SQRHIGH_TAB_SIZE > 2); /* ensures k < n */
+ MPFR_ASSERTN (MPFR_SQRHIGH_TAB_SIZE > 2); /* ensures k < n */
k = MPFR_LIKELY (n < MPFR_SQRHIGH_TAB_SIZE) ? sqrhigh_ktab[n]
: n/2 + n/50 + 1; /* +1 ensures that k > n/2 */
MPFR_ASSERTD (k == -1 || k == 0 || (k > n/2 && k < n));