diff options
author | drochner <drochner@pkgsrc.org> | 2004-02-26 17:08:22 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2004-02-26 17:08:22 +0000 |
commit | 34fb41559917c567747f0f776b86df80e313769b (patch) | |
tree | 047f778dc92789cf2e401223b34807dfd902e6a2 /devel/gmp | |
parent | 253958919e17334c6561178c1f07350baf866f0b (diff) | |
download | pkgsrc-34fb41559917c567747f0f776b86df80e313769b.tar.gz |
fix amd64 inline assembler code to deal with 32-bit integers
passed to count_trailing_zeros()
Diffstat (limited to 'devel/gmp')
-rw-r--r-- | devel/gmp/distinfo | 3 | ||||
-rw-r--r-- | devel/gmp/patches/patch-aa | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/gmp/distinfo b/devel/gmp/distinfo index b97cec96e27..8b11f0a3723 100644 --- a/devel/gmp/distinfo +++ b/devel/gmp/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.7 2003/02/21 12:25:22 mycroft Exp $ +$NetBSD: distinfo,v 1.8 2004/02/26 17:08:22 drochner Exp $ SHA1 (gmp-4.1.2.tar.gz) = 68a6ee6488e9c660f201be70bc55b8e2c40b16b1 Size (gmp-4.1.2.tar.gz) = 2159329 bytes +SHA1 (patch-aa) = ade0452f0d95518e70b6ddf71940da11d50f10d7 diff --git a/devel/gmp/patches/patch-aa b/devel/gmp/patches/patch-aa new file mode 100644 index 00000000000..86ec18f9359 --- /dev/null +++ b/devel/gmp/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.9 2004/02/26 17:09:08 drochner Exp $ + +--- longlong.h.orig 2004-02-26 17:07:18.000000000 +0100 ++++ longlong.h 2004-02-26 17:49:56.000000000 +0100 +@@ -715,8 +715,10 @@ + } while (0) + #define count_trailing_zeros(count, x) \ + do { \ ++ UDItype __cbtmp; \ + ASSERT ((x) != 0); \ +- __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x))); \ ++ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ ++ (count) = __cbtmp; \ + } while (0) + #endif /* x86_64 */ + |