summaryrefslogtreecommitdiff
path: root/libavcodec/bfin
diff options
context:
space:
mode:
authorMarc Hoffman <mmhoffm@gmail.com>2007-09-17 13:17:50 +0000
committerMarc Hoffman <mmhoffm@gmail.com>2007-09-17 13:17:50 +0000
commit56261c615035859a8d9574b0a1b7adc60b44eb6a (patch)
tree35be2cdf7307cbe6528be3fe02a99df1e53aaa5b /libavcodec/bfin
parent25e3e53d4092e7b69a4d681824fa0f7b2731bb1e (diff)
properly tell the compiler that A0 and A1 are clobbered
Originally committed as revision 10520 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bfin')
-rw-r--r--libavcodec/bfin/mathops.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/bfin/mathops.h b/libavcodec/bfin/mathops.h
index 61966cf8c8..7bdffbc9b1 100644
--- a/libavcodec/bfin/mathops.h
+++ b/libavcodec/bfin/mathops.h
@@ -31,7 +31,7 @@
"a0 = %1.H * %2.H, a1+= %1.H * %2.L (IS,M);\n\t"\
"a1 = a1 >>> 16;\n\t" \
"%0 = (a0 += a1);\n\t" \
- : "=d" (xxo) : "d" (X), "d" (Y)); xxo; })
+ : "=d" (xxo) : "d" (X), "d" (Y) : "A0","A1"); xxo; })
#else
#define MULH(X,Y) ({ int xxo; \
asm ( \
@@ -39,14 +39,14 @@
"a0 = %1.H * %2.H, a1+= %1.H * %2.L (IS,M);\n\t"\
"a1 = a1 >>> 16;\n\t" \
"%0 = (a0 += a1);\n\t" \
- : "=d" (xxo) : "d" (X), "d" (Y)); xxo; })
+ : "=d" (xxo) : "d" (X), "d" (Y) : "A0","A1"); xxo; })
#endif
/* signed 16x16 -> 32 multiply */
#define MUL16(a, b) ({ int xxo; \
asm ( \
"%0 = %1.l*%2.l (is);\n\t" \
- : "=W" (xxo) : "d" (a), "d" (b)); \
+ : "=W" (xxo) : "d" (a), "d" (b) : "A1"); \
xxo; })
#endif /* AVCODEC_BFIN_MATHOPS_H */