blob: 3935589f8b22ca1d69b8de7ecd1f74eb7c6977b2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
Brad Bishop316dfdd2018-06-25 12:45:53 -04003Index: gmp-6.1.2/longlong.h
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004===================================================================
Brad Bishop316dfdd2018-06-25 12:45:53 -04005--- 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 Williamsc124f4f2015-09-15 14:41:29 -05008 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 Bishop316dfdd2018-06-25 12:45:53 -040017 #endif /* __amd64__ */
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018