summaryrefslogtreecommitdiff
path: root/src/mpfr-gmp.h
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-28 15:08:34 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-28 15:08:34 +0000
commit4fc18617b46e5b89c51ce896b7fcc2e07bbc3f04 (patch)
tree01bd0a4688644d02afc863c7d56247fc4e6ff224 /src/mpfr-gmp.h
parentaa10e81afa3a3ab98721088673b46cbc9e334356 (diff)
downloadmpfr-4fc18617b46e5b89c51ce896b7fcc2e07bbc3f04.tar.gz
[src/sqrt.c] now uses mpn_rootrem (if available) instead of mpn_sqrtrem since
mpn_rootrem is faster. Also refactored the code: now compute one more limb of the square root when the target precision is a multiple of GMP_NUMB_LIMB. This greatly simplifies the code. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7178 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-gmp.h')
-rw-r--r--src/mpfr-gmp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mpfr-gmp.h b/src/mpfr-gmp.h
index 6faed59cf..51fa97a26 100644
--- a/src/mpfr-gmp.h
+++ b/src/mpfr-gmp.h
@@ -287,6 +287,11 @@ __MPFR_DECLSPEC void *__gmp_default_reallocate _MPFR_PROTO ((void *, size_t,
size_t));
__MPFR_DECLSPEC void __gmp_default_free _MPFR_PROTO ((void *, size_t));
+#ifndef __gmpn_rootrem
+ __MPFR_DECLSPEC mp_size_t __gmpn_rootrem _MPFR_PROTO ((mp_ptr, mp_ptr,
+ mp_srcptr, mp_size_t, mp_limb_t));
+#endif
+
/* Temp memory allocate */
struct tmp_marker