35 "lea (%3, %3), %%"FF_REG_a
" \n\t"
38 "movq (%1), %%mm0 \n\t"
39 "movq 1(%1), %%mm1 \n\t"
40 "movq (%1, %3), %%mm2 \n\t"
41 "movq 1(%1, %3), %%mm3 \n\t"
42 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
43 "movq %%mm4, (%2) \n\t"
44 "movq %%mm5, (%2, %3) \n\t"
45 "add %%"FF_REG_a
", %1 \n\t"
46 "add %%"FF_REG_a
", %2 \n\t"
47 "movq (%1), %%mm0 \n\t"
48 "movq 1(%1), %%mm1 \n\t"
49 "movq (%1, %3), %%mm2 \n\t"
50 "movq 1(%1, %3), %%mm3 \n\t"
51 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
52 "movq %%mm4, (%2) \n\t"
53 "movq %%mm5, (%2, %3) \n\t"
54 "add %%"FF_REG_a
", %1 \n\t"
55 "add %%"FF_REG_a
", %2 \n\t"
67 "lea (%3, %3), %%"FF_REG_a
" \n\t"
70 "movq (%1), %%mm0 \n\t"
71 "movq 1(%1), %%mm1 \n\t"
72 "movq (%1, %3), %%mm2 \n\t"
73 "movq 1(%1, %3), %%mm3 \n\t"
74 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
75 "movq %%mm4, (%2) \n\t"
76 "movq %%mm5, (%2, %3) \n\t"
77 "movq 8(%1), %%mm0 \n\t"
78 "movq 9(%1), %%mm1 \n\t"
79 "movq 8(%1, %3), %%mm2 \n\t"
80 "movq 9(%1, %3), %%mm3 \n\t"
81 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
82 "movq %%mm4, 8(%2) \n\t"
83 "movq %%mm5, 8(%2, %3) \n\t"
84 "add %%"FF_REG_a
", %1 \n\t"
85 "add %%"FF_REG_a
", %2 \n\t"
86 "movq (%1), %%mm0 \n\t"
87 "movq 1(%1), %%mm1 \n\t"
88 "movq (%1, %3), %%mm2 \n\t"
89 "movq 1(%1, %3), %%mm3 \n\t"
90 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
91 "movq %%mm4, (%2) \n\t"
92 "movq %%mm5, (%2, %3) \n\t"
93 "movq 8(%1), %%mm0 \n\t"
94 "movq 9(%1), %%mm1 \n\t"
95 "movq 8(%1, %3), %%mm2 \n\t"
96 "movq 9(%1, %3), %%mm3 \n\t"
97 PAVGBP(%%mm0, %%mm1, %%mm4, %%mm2, %%mm3, %%mm5)
98 "movq %%mm4, 8(%2) \n\t"
99 "movq %%mm5, 8(%2, %3) \n\t"
100 "add %%"FF_REG_a
", %1 \n\t"
101 "add %%"FF_REG_a
", %2 \n\t"
106 :FF_REG_a,
"memory");
113 "lea (%3, %3), %%"FF_REG_a
" \n\t"
114 "movq (%1), %%mm0 \n\t"
117 "movq (%1, %3), %%mm1 \n\t"
118 "movq (%1, %%"FF_REG_a
"),%%mm2\n\t"
119 PAVGBP(%%mm1, %%mm0, %%mm4, %%mm2, %%mm1, %%mm5)
120 "movq %%mm4, (%2) \n\t"
121 "movq %%mm5, (%2, %3) \n\t"
122 "add %%"FF_REG_a
", %1 \n\t"
123 "add %%"FF_REG_a
", %2 \n\t"
124 "movq (%1, %3), %%mm1 \n\t"
125 "movq (%1, %%"FF_REG_a
"),%%mm0\n\t"
126 PAVGBP(%%mm1, %%mm2, %%mm4, %%mm0, %%mm1, %%mm5)
127 "movq %%mm4, (%2) \n\t"
128 "movq %%mm5, (%2, %3) \n\t"
129 "add %%"FF_REG_a
", %1 \n\t"
130 "add %%"FF_REG_a
", %2 \n\t"
135 :FF_REG_a,
"memory");
144 "movq (%1), %%mm0 \n\t"
145 "movq 1(%1), %%mm1 \n\t"
146 "movq (%2), %%mm3 \n\t"
147 PAVGB(%%mm0, %%mm1, %%mm2, %%mm6)
149 "movq %%mm0, (%2) \
n\t"
150 "movq 8(%1), %%mm0 \
n\t"
151 "movq 9(%1), %%mm1 \
n\t"
152 "movq 8(%2), %%mm3 \
n\t"
153 PAVGB(%%mm0, %%mm1, %%mm2, %%mm6)
155 "movq %%mm0, 8(%2) \
n\t"
169 "lea (%3, %3), %%"FF_REG_a
" \n\t"
170 "movq (%1), %%mm0 \n\t"
173 "movq (%1, %3), %%mm1 \n\t"
174 "movq (%1, %%"FF_REG_a
"), %%mm2 \n\t"
175 PAVGBP(%%mm1, %%mm0, %%mm4, %%mm2, %%mm1, %%mm5)
176 "movq (%2), %%mm3 \n\t"
178 "movq (%2, %3), %%mm3 \n\t"
180 "movq %%mm0, (%2) \n\t"
181 "movq %%mm1, (%2, %3) \n\t"
182 "add %%"FF_REG_a
", %1 \n\t"
183 "add %%"FF_REG_a
", %2 \n\t"
185 "movq (%1, %3), %%mm1 \n\t"
186 "movq (%1, %%"FF_REG_a
"), %%mm0 \n\t"
187 PAVGBP(%%mm1, %%mm2, %%mm4, %%mm0, %%mm1, %%mm5)
188 "movq (%2), %%mm3 \n\t"
190 "movq (%2, %3), %%mm3 \n\t"
192 "movq %%mm2, (%2) \n\t"
193 "movq %%mm1, (%2, %3) \n\t"
194 "add %%"FF_REG_a
", %1 \n\t"
195 "add %%"FF_REG_a
", %2 \n\t"
199 :
"+g"(
h),
"+S"(pixels),
"+D"(
block)
201 :FF_REG_a,
"memory");
#define DEF(type, name, bytes, read, write)
#define PAVGB_MMX(rega, regb, regr, regfe)
static av_unused void put_TMPL pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static av_unused void put_TMPL pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static av_unused void put_TMPL pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)