aboutsummaryrefslogtreecommitdiffstats
path: root/math/gmp
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-05-12 15:45:39 +0800
committerale <ale@FreeBSD.org>2006-05-12 15:45:39 +0800
commit56c1ed3dc66a1421725cf816a490d7a6a247ab36 (patch)
tree561134c3afade535dc083e62839e9f5264f71ca7 /math/gmp
parentb4a51c62e4eb77b78cd7fb25278415e2322462d6 (diff)
downloadfreebsd-ports-gnome-56c1ed3dc66a1421725cf816a490d7a6a247ab36.tar.gz
freebsd-ports-gnome-56c1ed3dc66a1421725cf816a490d7a6a247ab36.tar.zst
freebsd-ports-gnome-56c1ed3dc66a1421725cf816a490d7a6a247ab36.zip
Try to fix breakage on 64 bit platforms.
Diffstat (limited to 'math/gmp')
-rw-r--r--math/gmp/Makefile1
-rw-r--r--math/gmp/files/patch-mpn_generic_addsub_n.c50
2 files changed, 51 insertions, 0 deletions
diff --git a/math/gmp/Makefile b/math/gmp/Makefile
index 7588ae18c93a..b038167fbf83 100644
--- a/math/gmp/Makefile
+++ b/math/gmp/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libgmp
PORTVERSION= 4.2.1
+PORTREVISION= 1
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gmp
diff --git a/math/gmp/files/patch-mpn_generic_addsub_n.c b/math/gmp/files/patch-mpn_generic_addsub_n.c
new file mode 100644
index 000000000000..5e2091963d59
--- /dev/null
+++ b/math/gmp/files/patch-mpn_generic_addsub_n.c
@@ -0,0 +1,50 @@
+--- mpn/generic/addsub_n.c.orig Fri May 12 09:31:03 2006
++++ mpn/generic/addsub_n.c Fri May 12 09:32:06 2006
+@@ -58,13 +58,13 @@
+ for (off = 0; off < n; off += PART_SIZE)
+ {
+ this_n = MIN (n - off, PART_SIZE);
+-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
++#if HAVE_NATIVE_mpn_add_nc
+ acyo = mpn_add_nc (r1p + off, s1p + off, s2p + off, this_n, acyo);
+ #else
+ acyn = mpn_add_n (r1p + off, s1p + off, s2p + off, this_n);
+ acyo = acyn + mpn_add_1 (r1p + off, r1p + off, this_n, acyo);
+ #endif
+-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
++#if HAVE_NATIVE_mpn_sub_nc
+ scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
+ #else
+ scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);
+@@ -81,13 +81,13 @@
+ for (off = 0; off < n; off += PART_SIZE)
+ {
+ this_n = MIN (n - off, PART_SIZE);
+-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
++#if HAVE_NATIVE_mpn_sub_nc
+ scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
+ #else
+ scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);
+ scyo = scyn + mpn_sub_1 (r2p + off, r2p + off, this_n, scyo);
+ #endif
+-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
++#if HAVE_NATIVE_mpn_add_nc
+ acyo = mpn_add_nc (r1p + off, s1p + off, s2p + off, this_n, acyo);
+ #else
+ acyn = mpn_add_n (r1p + off, s1p + off, s2p + off, this_n);
+@@ -105,13 +105,13 @@
+ for (off = 0; off < n; off += PART_SIZE)
+ {
+ this_n = MIN (n - off, PART_SIZE);
+-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
++#if HAVE_NATIVE_mpn_add_nc
+ acyo = mpn_add_nc (tp, s1p + off, s2p + off, this_n, acyo);
+ #else
+ acyn = mpn_add_n (tp, s1p + off, s2p + off, this_n);
+ acyo = acyn + mpn_add_1 (tp, tp, this_n, acyo);
+ #endif
+-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
++#if HAVE_NATIVE_mpn_sub_nc
+ scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
+ #else
+ scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);