1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 05:48:05 +02:00
openwrt-xburst/tools/gmp/patches/000-OE-amd64.patch
acoul 980677d661 tools/gmp: update to version 5.0.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-09 13:28:57 +00:00

17 lines
576 B
Diff

Index: gmp-5.0.1/longlong.h
===================================================================
--- gmp-5.0.1.orig/longlong.h
+++ gmp-5.0.1/longlong.h
@@ -849,8 +849,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
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 */