diff options
Diffstat (limited to 'math/mpfr/patches/patch-aa')
-rw-r--r-- | math/mpfr/patches/patch-aa | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/math/mpfr/patches/patch-aa b/math/mpfr/patches/patch-aa new file mode 100644 index 00000000000..2febbcc2aac --- /dev/null +++ b/math/mpfr/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/06/05 22:11:39 rh Exp $ + +--- ../gmp-4.1.2/longlong.h.orig 2002-12-18 07:57:20.000000000 +1000 ++++ ../gmp-4.1.2/longlong.h +@@ -715,8 +715,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( + } 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 */ + |