$NetBSD: patch-aa,v 1.12 2013/01/31 20:30:26 adam Exp $ --- longlong.h.orig 2006-12-08 17:56:28.000000000 -0800 +++ longlong.h @@ -1031,8 +1031,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( count is only an int. */ #define count_trailing_zeros(count, x) \ do { \ + UDItype __cbtmp; \ ASSERT ((x) != 0); \ - __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ + __asm__ ("bsfq %1,%q0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ + (count) = __cbtmp; \ } while (0) #endif /* x86_64 */