Mercurial > libavcodec.hg
changeset 8114:1231a7ddd932 libavcodec
ARM: prettify MAC16() macro
author | mru |
---|---|
date | Thu, 06 Nov 2008 01:33:26 +0000 |
parents | aa55fd152068 |
children | e61cc20bad68 |
files | armv4l/mathops.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/armv4l/mathops.h Thu Nov 06 01:33:23 2008 +0000 +++ b/armv4l/mathops.h Thu Nov 06 01:33:26 2008 +0000 @@ -78,8 +78,9 @@ #if defined(HAVE_ARMV5TE) /* signed 16x16 -> 32 multiply add accumulate */ -# define MAC16(rt, ra, rb) \ - __asm__ ("smlabb %0, %2, %3, %0" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); +# define MAC16(rt, ra, rb) \ + __asm__ ("smlabb %0, %1, %2, %0" : "+r"(rt) : "r"(ra), "r"(rb)); + /* signed 16x16 -> 32 multiply */ # define MUL16(ra, rb) \ ({ int rt; \