$NetBSD: patch-aa,v 1.1.1.1 2004/06/05 22:11:39 rh Exp $ --- ../gmp-4.1.2/longlong.h.orig 2002-12-18 07:57:20.000000000 +1000 +++ ../gmp-4.1.2/longlong.h @@ -715,8 +715,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( } while (0) #define count_trailing_zeros(count, x) \ do { \ + UDItype __cbtmp; \ ASSERT ((x) != 0); \ - __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x))); \ + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ + (count) = __cbtmp; \ } while (0) #endif /* x86_64 */