pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gmp fix amd64 inline assembler code to deal with...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91051e395abc
branches:  trunk
changeset: 469672:91051e395abc
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Feb 26 17:08:22 2004 +0000

description:
fix amd64 inline assembler code to deal with 32-bit integers
passed to count_trailing_zeros()

diffstat:

 devel/gmp/distinfo         |   3 ++-
 devel/gmp/patches/patch-aa |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f8527ae76c9d -r 91051e395abc devel/gmp/distinfo
--- a/devel/gmp/distinfo        Thu Feb 26 16:57:54 2004 +0000
+++ b/devel/gmp/distinfo        Thu Feb 26 17:08:22 2004 +0000
@@ -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 -r f8527ae76c9d -r 91051e395abc devel/gmp/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmp/patches/patch-aa        Thu Feb 26 17:08:22 2004 +0000
@@ -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 */
+ 



Home | Main Index | Thread Index | Old Index