summaryrefslogtreecommitdiff
path: root/src/mul.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-04-27 11:38:51 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-04-27 11:38:51 +0000
commit8d9ef889f45d41bc648f9ab6c3d0e2f0292556c2 (patch)
tree04996cc2b5826707fa29c415b437da4315af0a4e /src/mul.c
parent8273dba252b8b2ef64fc07bef75a8207141c4d65 (diff)
downloadmpfr-8d9ef889f45d41bc648f9ab6c3d0e2f0292556c2.tar.gz
[src/mul.c] Like in add1sp.c and sub1sp.c, do not define the specific
functions for low precision if MPFR_GENERIC_ABI is defined (they are not called in such a case). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11441 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mul.c')
-rw-r--r--src/mul.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mul.c b/src/mul.c
index bd4138b4a..e76613198 100644
--- a/src/mul.c
+++ b/src/mul.c
@@ -205,6 +205,8 @@ mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
/* Multiply 2 mpfr_t */
+#if !defined(MPFR_GENERIC_ABI)
+
/* Special code for prec(a) < GMP_NUMB_BITS and
prec(b), prec(c) <= GMP_NUMB_BITS.
Note: this code was copied in sqr.c, function mpfr_sqr_1 (this saves a few cycles
@@ -667,6 +669,8 @@ mpfr_mul_3 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode,
}
}
+#endif /* !defined(MPFR_GENERIC_ABI) */
+
/* Note: mpfr_sqr will call mpfr_mul if bn > MPFR_SQR_THRESHOLD,
in order to use Mulders' mulhigh, which is handled only here
to avoid partial code duplication. There is some overhead due