ARM: prettify MAC16() macro

Originally committed as revision 15782 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2008-11-06 01:33:26 +00:00
parent 73c1c96b83
commit b911711571
1 changed files with 3 additions and 2 deletions

View File

@ -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; \