Commit a2488fc8 authored by mhoffman's avatar mhoffman

properly tell the compiler that A0 and A1 are clobbered

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10520 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75674739
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment