summaryrefslogtreecommitdiff
path: root/math/cln
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-03-12 16:34:13 +0000
committerrillig <rillig@pkgsrc.org>2006-03-12 16:34:13 +0000
commit362e09fe413b841928f413c691eeac4b9e91df1f (patch)
treef9a2a8e5b9e1a90e7b06b2a4a01ea3c304924c40 /math/cln
parent1f7c468fc96e0c740f7df22601666f6ae930d086 (diff)
downloadpkgsrc-362e09fe413b841928f413c691eeac4b9e91df1f.tar.gz
Added patch-ac, which fixes compilation failures in __asm__ statements.
Diffstat (limited to 'math/cln')
-rw-r--r--math/cln/patches/patch-ac15
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)) \
+ ); \