pkgsrc/devel/gmp/patches/patch-aa
adam a90efb8f55 Changes 4.1.3:
* Bug fixes.
* mpz_export allows NULL for countp parameter.
2004-08-18 12:41:32 +00:00

16 lines
555 B
Text

$NetBSD: patch-aa,v 1.10 2004/08/18 12:41:32 adam Exp $
--- longlong.h.orig 2004-08-18 14:29:33.000000000 +0000
+++ longlong.h
@@ -738,8 +738,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 */