[Ecm-commits] r2377 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Wed Feb 6 14:20:37 CET 2013


Author: brian_gladman
Date: 2013-02-06 14:20:37 +0100 (Wed, 06 Feb 2013)
New Revision: 2377

Log:
Guard defines needed by GMP that cause errors when MPIR is used

Modified:
   trunk/ecm-gmp.h
Modified: trunk/ecm-gmp.h
===================================================================
--- trunk/ecm-gmp.h	2013-02-05 19:32:27 UTC (rev 2376)
+++ trunk/ecm-gmp.h	2013-02-06 13:20:37 UTC (rev 2377)
@@ -107,14 +107,18 @@
 #endif
 #endif
 
+#if !defined( __MPIR_RELEASE )
+
 #if defined(HAVE___GMPN_REDC_1)
   mp_limb_t __gmpn_redc_1 (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_limb_t);
-#endif
+#  endif
 
 #if defined(HAVE___GMPN_REDC_2)
   mp_limb_t __gmpn_redc_2 (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr);
 #endif
 
+#endif
+
 #if defined(HAVE___GMPN_REDC_N)
   void __gmpn_redc_n (mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr);
 #endif




More information about the Ecm-commits mailing list