diff options
author | Måns Rullgård <mans@mansr.com> | 2008-11-06 01:33:26 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-11-06 01:33:26 +0000 |
commit | b9117115716dc706b82d416e0f0de933bced0f09 (patch) | |
tree | e4f90325a8429616d50c22970e8462cc7ebd9bbf /libavcodec | |
parent | 73c1c96b8343bff0cbe69a08ef5403de3983fb68 (diff) | |
download | ffmpeg-b9117115716dc706b82d416e0f0de933bced0f09.tar.gz |
ARM: prettify MAC16() macro
Originally committed as revision 15782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/armv4l/mathops.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/armv4l/mathops.h b/libavcodec/armv4l/mathops.h index 9f3076ba40..5c33cabb63 100644 --- a/libavcodec/armv4l/mathops.h +++ b/libavcodec/armv4l/mathops.h @@ -78,8 +78,9 @@ static inline av_const int64_t MAC64(int64_t d, int a, int b) #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; \ |