Compile error: 4.3.0 + Tru64 cc

Torbjorn Granlund tg at gmplib.org
Tue Apr 28 21:56:41 CEST 2009


Please try this patch:

diff -r 377d7b472364 mpn/generic/binvert.c
--- a/mpn/generic/binvert.c	Tue Apr 28 21:26:39 2009 +0200
+++ b/mpn/generic/binvert.c	Tue Apr 28 21:51:58 2009 +0200
@@ -28,27 +28,6 @@
 #include "gmp-impl.h"
 
 
-#define __GMP_FORCE_mpn_neg_n
-
-#if defined (__GMP_EXTERN_INLINE) || defined (__GMP_FORCE_mpn_neg_n)
-#if ! defined (__GMP_FORCE_mpn_neg_n)
-__GMP_EXTERN_INLINE
-#endif
-mp_limb_t
-mpn_neg_n (mp_ptr __gmp_rp, mp_srcptr __gmp_up, mp_size_t __gmp_n)
-{
-  mp_limb_t __gmp_ul, __gmp_cy;
-  __gmp_cy = 0;
-  do {
-      __gmp_ul = *__gmp_up++;
-      *__gmp_rp++ = -__gmp_ul - __gmp_cy;
-      __gmp_cy |= __gmp_ul != 0;
-  } while (--__gmp_n != 0);
-  return __gmp_cy;
-}
-#endif
-
-
 /*
   r[k+1] = r[k] - r[k] * (u*r[k] - 1)
   r[k+1] = r[k] + r[k] - r[k]*(u*r[k])


-- 
Torbjörn


More information about the gmp-bugs mailing list