summaryrefslogtreecommitdiff
path: root/src/gmp_op.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-03-10 00:34:57 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-03-10 00:34:57 +0000
commitef799fef0f28e4c961d983d338e89e8eea6c3cc3 (patch)
tree84e42b22c15080865be4fb1dcf1d419edf3d746e /src/gmp_op.c
parentf5287a69ee2fd1f00a7213f08c552e7262d512ca (diff)
downloadmpfr-ef799fef0f28e4c961d983d338e89e8eea6c3cc3.tar.gz
Added a TODO item concerning gmp_op.c functions with mpz_srcptr and
the use of mpz_fits_slong_p and a mpfr_*_si function (see r8992). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8998 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/gmp_op.c')
-rw-r--r--src/gmp_op.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gmp_op.c b/src/gmp_op.c
index 1ad071ced..407e630c6 100644
--- a/src/gmp_op.c
+++ b/src/gmp_op.c
@@ -23,6 +23,11 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
+/* TODO: for functions with mpz_srcptr, check whether mpz_fits_slong_p
+ is really useful in all cases. For instance, concerning the addition,
+ one now has mpz_t -> long -> unsigned long -> mpfr_t then mpfr_add
+ instead of mpz_t -> mpfr_t then mpfr_add. */
+
/* Init and set a mpfr_t with enough precision to store a mpz.
This function should be called in the extended exponent range. */
static void