# HG changeset patch # User michaelni # Date 1019428909 0 # Node ID 54d86f074a4b3922a4a952ec488a017e4bb8180c # Parent 5cc47d0ba53eee7e431ce3f0f6a028801b0fa901 rounding bugfix diff -r 5cc47d0ba53e -r 54d86f074a4b i386/motion_est_mmx.c --- a/i386/motion_est_mmx.c Sun Apr 21 21:18:17 2002 +0000 +++ b/i386/motion_est_mmx.c Sun Apr 21 22:41:49 2002 +0000 @@ -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 @@ 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<