$NetBSD: patch-aa,v 1.13 2014/04/17 13:08:24 wiz Exp $ --- longlong.h.orig 2014-03-25 14:37:55.000000000 +0000 +++ longlong.h @@ -1039,8 +1039,10 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype 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 /* __amd64__ */