1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)) \
); \
|