]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gmp/gmp-4.1.2/amd64.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gmp / gmp-4.1.2 / amd64.patch
1 Index: gmp-4.1.2/longlong.h
2 ===================================================================
3 --- gmp-4.1.2.orig/longlong.h   2005-06-24 13:38:06.787570452 -0700
4 +++ gmp-4.1.2/longlong.h        2005-06-24 13:38:31.539556496 -0700
5 @@ -715,8 +715,10 @@
6    } while (0)
7  #define count_trailing_zeros(count, x)                                 \
8    do {                                                                 \
9 +    UDItype __cbtmp;                                                   \
10      ASSERT ((x) != 0);                                                 \
11 -    __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x)));       \
12 +    __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x)));     \
13 +    (count) = __cbtmp;                                                 \
14    } while (0)
15  #endif /* x86_64 */
16