| 1 | Index: gmp-5.0.1/longlong.h |
| 2 | =================================================================== |
| 3 | --- gmp-5.0.1.orig/longlong.h |
| 4 | +++ gmp-5.0.1/longlong.h |
| 5 | @@ -849,8 +849,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( |
| 6 | count is only an int. */ |
| 7 | #define count_trailing_zeros(count, x) \ |
| 8 | do { \ |
| 9 | + UDItype __cbtmp; \ |
| 10 | ASSERT ((x) != 0); \ |
| 11 | - __asm__ ("bsfq %1,%q0" : "=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 | |
| 17 | |