summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp/amd64.patch
blob: 38c89c7a12f8f5592f75b13b8b0cd5f50eb9f0a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Upstream-Status: Pending

--- gmp-4.1.4/longlong.h.orig	2004-04-22 00:34:28.000000000 +0200
+++ gmp-4.1.4/longlong.h	2005-07-18 01:13:06.000000000 +0200
@@ -738,8 +738,10 @@
    count is only an int. */
 #define count_trailing_zeros(count, x)					\
   do {									\
+    UDItype __cbtmp;							\
     ASSERT ((x) != 0);							\
-    __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x)));	\
+    __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x)));	\
+    (count) = __cbtmp;							\
   } while (0)
 #endif /* x86_64 */