summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-03-04 08:40:39 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-03-04 08:40:39 +0100
commit2e2b61af82ee36ce37fdcf635aa3f67af3542cbf (patch)
treec123fcecad331119f3e6f1b7d1cb2434a4b9c12c
parentf16cd26af739ac19b270b118b1d2e7c9bc786678 (diff)
downloadgmp-2e2b61af82ee36ce37fdcf635aa3f67af3542cbf.tar.gz
gmp-h.in (__GMP_HAVE_TOKEN_PASTE): Remove.
-rw-r--r--ChangeLog3
-rw-r--r--gmp-h.in6
-rw-r--r--gmp-impl.h8
3 files changed, 2 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index b19dbdbe2..1af786090 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,8 @@
* mpz/invert.c: Remove mod 0 branch.
* tests/mpz/t-invert.c: Avoid testing mod 0.
- * gmp-h.in (__gmp_signed): Remove.
+ * gmp-h.in (__gmp_signed, __GMP_HAVE_TOKEN_PASTE): Remove.
+ * gmp-impl.h: Strip __GMP_HAVE_TOKEN_PASTE usage.
2012-03-03 Torbjorn Granlund <tege@gmplib.org>
diff --git a/gmp-h.in b/gmp-h.in
index e78f04c2d..1a517e99d 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -95,11 +95,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|| defined (_WIN32)
#define __GMP_HAVE_CONST 1
#define __GMP_HAVE_PROTOTYPES 1
-#define __GMP_HAVE_TOKEN_PASTE 1
#else
#define __GMP_HAVE_CONST 0
#define __GMP_HAVE_PROTOTYPES 0
-#define __GMP_HAVE_TOKEN_PASTE 0
#endif
@@ -294,11 +292,7 @@ typedef __mpq_struct *mpq_ptr;
#ifndef __MPN
-#if __GMP_HAVE_TOKEN_PASTE
#define __MPN(x) __gmpn_##x
-#else
-#define __MPN(x) __gmpn_/**/x
-#endif
#endif
/* For reference, "defined(EOF)" cannot be used here. In g++ 2.95.4,
diff --git a/gmp-impl.h b/gmp-impl.h
index 036c9f62f..ce6df4ce4 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -3731,17 +3731,9 @@ __GMP_DECLSPEC void __gmp_invalid_operation (void) ATTRIBUTE_NORETURN;
#define SQRT_OF_NEGATIVE __gmp_sqrt_of_negative ()
#if defined _LONG_LONG_LIMB
-#if __GMP_HAVE_TOKEN_PASTE
#define CNST_LIMB(C) ((mp_limb_t) C##LL)
-#else
-#define CNST_LIMB(C) ((mp_limb_t) C/**/LL)
-#endif
#else /* not _LONG_LONG_LIMB */
-#if __GMP_HAVE_TOKEN_PASTE
#define CNST_LIMB(C) ((mp_limb_t) C##L)
-#else
-#define CNST_LIMB(C) ((mp_limb_t) C/**/L)
-#endif
#endif /* _LONG_LONG_LIMB */
/* Stuff used by mpn/generic/perfsqr.c and mpz/prime_p.c */