Revision c21c835b libavcodec/x86/dsputil_mmx.c

View differences:

libavcodec/x86/dsputil_mmx.c
155 155
#define SET_RND  MOVQ_WONE
156 156
#define PAVGBP(a, b, c, d, e, f)        PAVGBP_MMX_NO_RND(a, b, c, d, e, f)
157 157
#define PAVGB(a, b, c, e)               PAVGB_MMX_NO_RND(a, b, c, e)
158
#define OP_AVG(a, b, c, e)              PAVGB_MMX(a, b, c, e)
158 159

  
159 160
#include "dsputil_mmx_rnd_template.c"
160 161

  
......
176 177
#undef SET_RND
177 178
#undef PAVGBP
178 179
#undef PAVGB
180
#undef OP_AVG
179 181

  
180 182
/***********************************/
181 183
/* 3Dnow specific */
182 184

  
183 185
#define DEF(x) x ## _3dnow
184 186
#define PAVGB "pavgusb"
187
#define OP_AVG PAVGB
185 188

  
186 189
#include "dsputil_mmx_avg_template.c"
187 190

  
188 191
#undef DEF
189 192
#undef PAVGB
193
#undef OP_AVG
190 194

  
191 195
/***********************************/
192 196
/* MMX2 specific */
......
195 199

  
196 200
/* Introduced only in MMX2 set */
197 201
#define PAVGB "pavgb"
202
#define OP_AVG PAVGB
198 203

  
199 204
#include "dsputil_mmx_avg_template.c"
200 205

  
201 206
#undef DEF
202 207
#undef PAVGB
208
#undef OP_AVG
203 209

  
204 210
#define put_no_rnd_pixels16_mmx put_pixels16_mmx
205 211
#define put_no_rnd_pixels8_mmx put_pixels8_mmx

Also available in: Unified diff