comparison i386/dsputil_mmx_avg.h @ 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 15cfba1b97b5
children ef2149182f1c
comparison
equal deleted inserted replaced
2610:f794026f4551 2611:00f608ae3791
68 "decl %0 \n\t" 68 "decl %0 \n\t"
69 "1: \n\t" 69 "1: \n\t"
70 "movd (%1), %%mm0 \n\t" 70 "movd (%1), %%mm0 \n\t"
71 "add %4, %1 \n\t" 71 "add %4, %1 \n\t"
72 "movd (%1), %%mm1 \n\t" 72 "movd (%1), %%mm1 \n\t"
73 "add %4, %1 \n\t" 73 "movd (%2), %%mm2 \n\t"
74 PAVGB" (%2), %%mm0 \n\t" 74 "movd 4(%2), %%mm3 \n\t"
75 PAVGB" 4(%2), %%mm1 \n\t" 75 "add %4, %1 \n\t"
76 PAVGB" %%mm2, %%mm0 \n\t"
77 PAVGB" %%mm3, %%mm1 \n\t"
76 "movd %%mm0, (%3) \n\t" 78 "movd %%mm0, (%3) \n\t"
77 "add %5, %3 \n\t" 79 "add %5, %3 \n\t"
78 "movd %%mm1, (%3) \n\t" 80 "movd %%mm1, (%3) \n\t"
79 "add %5, %3 \n\t" 81 "add %5, %3 \n\t"
80 "movd (%1), %%mm0 \n\t" 82 "movd (%1), %%mm0 \n\t"
81 "add %4, %1 \n\t" 83 "add %4, %1 \n\t"
82 "movd (%1), %%mm1 \n\t" 84 "movd (%1), %%mm1 \n\t"
83 "add %4, %1 \n\t" 85 "movd 8(%2), %%mm2 \n\t"
84 PAVGB" 8(%2), %%mm0 \n\t" 86 "movd 12(%2), %%mm3 \n\t"
85 PAVGB" 12(%2), %%mm1 \n\t" 87 "add %4, %1 \n\t"
88 PAVGB" %%mm2, %%mm0 \n\t"
89 PAVGB" %%mm3, %%mm1 \n\t"
86 "movd %%mm0, (%3) \n\t" 90 "movd %%mm0, (%3) \n\t"
87 "add %5, %3 \n\t" 91 "add %5, %3 \n\t"
88 "movd %%mm1, (%3) \n\t" 92 "movd %%mm1, (%3) \n\t"
89 "add %5, %3 \n\t" 93 "add %5, %3 \n\t"
90 "add $16, %2 \n\t" 94 "add $16, %2 \n\t"