From ba8d0be99da6f2da5e3ac3206f6c0689228550aa Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 21 Apr 2002 22:41:49 +0000 Subject: [PATCH] rounding bugfix Originally committed as revision 409 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/i386/motion_est_mmx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/i386/motion_est_mmx.c b/libavcodec/i386/motion_est_mmx.c index e704c42..ee29110 100644 --- a/libavcodec/i386/motion_est_mmx.c +++ b/libavcodec/i386/motion_est_mmx.c @@ -19,6 +19,7 @@ * mostly by Michael Niedermayer */ #include "../dsputil.h" +#include "../mangle.h" static const __attribute__ ((aligned(8))) UINT64 round_tab[3]={ 0x0000000000000000, @@ -26,6 +27,8 @@ static const __attribute__ ((aligned(8))) UINT64 round_tab[3]={ 0x0002000200020002, }; +static __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL; + static inline void sad8_mmx(UINT8 *blk1, UINT8 *blk2, int stride, int h) { int len= -(stride<