diff options
Diffstat (limited to 'devel/gmp/patches/patch-aa')
-rw-r--r-- | devel/gmp/patches/patch-aa | 16 |
1 files changed, 16 insertions, 0 deletions
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 */ + |