Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 3 | Index: gmp-6.1.2/longlong.h |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | =================================================================== |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | --- gmp-6.1.2.orig/longlong.h |
| 6 | +++ gmp-6.1.2/longlong.h |
| 7 | @@ -1036,8 +1036,10 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | count is only an int. */ |
| 9 | #define count_trailing_zeros(count, x) \ |
| 10 | do { \ |
| 11 | + UDItype __cbtmp; \ |
| 12 | ASSERT ((x) != 0); \ |
| 13 | - __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ |
| 14 | + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ |
| 15 | + (count) = __cbtmp; \ |
| 16 | } while (0) |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | #endif /* __amd64__ */ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |