Mercurial > libavcodec.hg
changeset 2611:00f608ae3791 libavcodec
read 32bit instead of 64bit to avoid overreading and missalignments
author | michael |
---|---|
date | Sun, 17 Apr 2005 13:30:45 +0000 |
parents | f794026f4551 |
children | 210cca8f5764 |
files | i386/dsputil_mmx_avg.h |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/dsputil_mmx_avg.h Sun Apr 17 09:27:53 2005 +0000 +++ b/i386/dsputil_mmx_avg.h Sun Apr 17 13:30:45 2005 +0000 @@ -70,9 +70,11 @@ "movd (%1), %%mm0 \n\t" "add %4, %1 \n\t" "movd (%1), %%mm1 \n\t" + "movd (%2), %%mm2 \n\t" + "movd 4(%2), %%mm3 \n\t" "add %4, %1 \n\t" - PAVGB" (%2), %%mm0 \n\t" - PAVGB" 4(%2), %%mm1 \n\t" + PAVGB" %%mm2, %%mm0 \n\t" + PAVGB" %%mm3, %%mm1 \n\t" "movd %%mm0, (%3) \n\t" "add %5, %3 \n\t" "movd %%mm1, (%3) \n\t" @@ -80,9 +82,11 @@ "movd (%1), %%mm0 \n\t" "add %4, %1 \n\t" "movd (%1), %%mm1 \n\t" + "movd 8(%2), %%mm2 \n\t" + "movd 12(%2), %%mm3 \n\t" "add %4, %1 \n\t" - PAVGB" 8(%2), %%mm0 \n\t" - PAVGB" 12(%2), %%mm1 \n\t" + PAVGB" %%mm2, %%mm0 \n\t" + PAVGB" %%mm3, %%mm1 \n\t" "movd %%mm0, (%3) \n\t" "add %5, %3 \n\t" "movd %%mm1, (%3) \n\t"