summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/gmp/gmp-4.1.2/amd64.patch
blob: bbede7fcc77dbc9d7c2488ba1ffe7a56c1408577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: gmp-4.1.2/longlong.h
===================================================================
--- gmp-4.1.2.orig/longlong.h	2005-06-24 13:38:06.787570452 -0700
+++ gmp-4.1.2/longlong.h	2005-06-24 13:38:31.539556496 -0700
@@ -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 */