diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-12-21 14:10:51 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-12-21 14:10:51 +0000 |
commit | e4300ac89743c297fdc80b82399953492f065c06 (patch) | |
tree | 0bab817d75f27727bdd283794894aec3bfb71884 /root.c | |
parent | 718e0f2bfd39efeb0d6ed578300f4cf49c8394f1 (diff) | |
download | mpfr-e4300ac89743c297fdc80b82399953492f065c06.tar.gz |
remove new rootrem implementation (unclear copyright status)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4318 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'root.c')
-rw-r--r-- | root.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -23,15 +23,6 @@ MA 02110-1301, USA. */ #define MPFR_NEED_LONGLONG_H #include "mpfr-impl.h" -#if !__MPFR_GMP(4,3,0) /* replace mpn_rootrem/mpz_root code by faster one - for GMP versions previous to that one */ -#include "rootrem.c" -#include "mpzroot.c" -#define MPZ_ROOT mpfr_mpz_root -#else /* use native mpz_root from GMP */ -#define MPZ_ROOT mpz_root -#endif - /* The computation of y = x^(1/k) is done as follows: Let x = sign * m * 2^(k*e) where m is an integer @@ -168,7 +159,7 @@ mpfr_root (mpfr_ptr y, mpfr_srcptr x, unsigned long k, mp_rnd_t rnd_mode) /* we reuse the variable m to store the kth root, since it is not needed any more: we just need to know if the root is exact */ - inexact = MPZ_ROOT (m, m, k) == 0; + inexact = mpz_root (m, m, k) == 0; MPFR_MPZ_SIZEINBASE2 (tmp, m); sh = tmp - n; |