summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorrillig <rillig>2006-03-12 16:34:13 +0000
committerrillig <rillig>2006-03-12 16:34:13 +0000
commit6260b5c69bd32dfbe197a1ab73b3d1f2908dd4ca (patch)
treef9a2a8e5b9e1a90e7b06b2a4a01ea3c304924c40 /math
parentae1624064380ce16a1051702c4e5490cea6d3aaa (diff)
downloadpkgsrc-6260b5c69bd32dfbe197a1ab73b3d1f2908dd4ca.tar.gz
Added patch-ac, which fixes compilation failures in __asm__ statements.
Diffstat (limited to 'math')
-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)) \
+ ); \