summaryrefslogtreecommitdiff
path: root/src/mpfr-gmp.h
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2011-08-06 11:52:12 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2011-08-06 11:52:12 +0000
commit674471e90c174efe9e5123a97dfb7d077b9c20a3 (patch)
tree9906d2e870325cbb28552bbda14d77db752709c9 /src/mpfr-gmp.h
parent61ab97cbc64a757e65fd7b45b9119b0af0945b8f (diff)
downloadmpfr-674471e90c174efe9e5123a97dfb7d077b9c20a3.tar.gz
[mpfr-gmp.h] use mpfr_pi1_t instead of gmp_pi1_t to avoid using GMP's namespace
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7788 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-gmp.h')
-rw-r--r--src/mpfr-gmp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mpfr-gmp.h b/src/mpfr-gmp.h
index e6c9a0614..1bec5421e 100644
--- a/src/mpfr-gmp.h
+++ b/src/mpfr-gmp.h
@@ -325,10 +325,12 @@ __MPFR_DECLSPEC void mpfr_tmp_free _MPFR_PROTO ((struct tmp_marker *));
udiv_qrnnd (invxl, dummy, ~(xl), ~(mp_limb_t)0, xl); \
} while (0)
+typedef struct {mp_limb_t inv32;} mpfr_pi1_t; /* We changed gmp_pi1_t into
+ mpfr_pi1_t to avoid using
+ GMP's namespace. */
/* invert_pi1 macro, adapted from GMP 5.0.2, file gmp-impl.h.
It returns dinv = floor((B^3-1)/(d1*B+d0))-B, where B=2^BITS_PER_LIMB,
assuming the most significant bit of d1 is set. */
-typedef struct {mp_limb_t inv32;} gmp_pi1_t;
#undef invert_pi1
#define invert_pi1(dinv, d1, d0) \
do { \