diff options
-rw-r--r-- | math/cln/patches/patch-ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/math/cln/patches/patch-ac b/math/cln/patches/patch-ac new file mode 100644 index 00000000000..e89fae13100 --- /dev/null +++ b/math/cln/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.3 2006/03/12 16:34:13 rillig Exp $ + +In parameterized __asm__ statements, literal % must be doubled. + +--- src/base/cl_low.h.orig 2006-02-18 12:56:13.000000000 +0100 ++++ src/base/cl_low.h 2006-02-18 12:56:23.000000000 +0100 +@@ -238,7 +238,7 @@ inline uint32 mulu32_unchecked (uint32 a + #define mulu32(x,y,hi_zuweisung,lo_zuweisung) \ + ({ var register uint64 _hi; \ + var register uint64 _lo; \ +- __asm__("umul %2,%3,%1\n\trd %y,%0" \ ++ __asm__("umul %2,%3,%1\n\trd %%y,%0" \ + : "=r" (_hi), "=r" (_lo) \ + : "r" ((uint32)(x)), "r" ((uint32)(y)) \ + ); \ |