diff options
author | Måns Rullgård | 2008-11-24 09:28:55 +0000 |
---|---|---|
committer | Måns Rullgård | 2008-11-24 09:28:55 +0000 |
commit | 4deaa94639148297cef58d35bc25ebcab45e9111 (patch) | |
tree | 03a79a4895415234e3ec75717864a5411eefda01 /libavcodec/i386/mathops.h | |
parent | 8f5aaa6d2fde23d372c80844514103c93088b2f2 (diff) |
Add shift argument to MULL() macro
This replaces use of FRAC_BITS in the MULL() definition with a third
argument specifying the shift amount. All uses of this macro are
updated to pass FRAC_BITS as third argument.
Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/mathops.h')
-rw-r--r-- | libavcodec/i386/mathops.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/i386/mathops.h b/libavcodec/i386/mathops.h index 2ae24fcaac..77c72d85ea 100644 --- a/libavcodec/i386/mathops.h +++ b/libavcodec/i386/mathops.h @@ -22,15 +22,13 @@ #ifndef AVCODEC_I386_MATHOPS_H #define AVCODEC_I386_MATHOPS_H -#ifdef FRAC_BITS -# define MULL(ra, rb) \ +#define MULL(ra, rb, shift) \ ({ int rt, dummy; __asm__ (\ "imull %3 \n\t"\ "shrdl %4, %%edx, %%eax \n\t"\ : "=a"(rt), "=d"(dummy)\ - : "a" ((int)ra), "rm" ((int)rb), "i"(FRAC_BITS));\ + : "a" ((int)ra), "rm" ((int)rb), "i"(shift));\ rt; }) -#endif #define MULH(ra, rb) \ ({ int rt, dummy;\ |