comparison i386/dsputil_mmx_avg.h @ 5:4479bcab253e libavcodec

suppressed no longer needed emms()
author glantau
date Tue, 24 Jul 2001 20:38:55 +0000
parents 986e461dc072
children 1b4461b5a7fb
comparison
equal deleted inserted replaced
4:b8374040680d 5:4479bcab253e
60 :"=m"(*p) 60 :"=m"(*p)
61 :"m"(*pix) 61 :"m"(*pix)
62 :"memory"); 62 :"memory");
63 pix += line_size; p += line_size; 63 pix += line_size; p += line_size;
64 } 64 }
65 emms();
66 } 65 }
67 66
68 static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size, int h) 67 static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size, int h)
69 { 68 {
70 int dh, hh; 69 int dh, hh;
100 :"=m"(*p) 99 :"=m"(*p)
101 :"m"(*pix), 100 :"m"(*pix),
102 "m"(*(pix+line_size)) 101 "m"(*(pix+line_size))
103 :"memory"); 102 :"memory");
104 } 103 }
105 emms();
106 } 104 }
107 105
108 static void DEF(avg_pixels)(UINT8 *block, const UINT8 *pixels, int line_size, int h) 106 static void DEF(avg_pixels)(UINT8 *block, const UINT8 *pixels, int line_size, int h)
109 { 107 {
110 int dh, hh; 108 int dh, hh;
146 :"=m"(*p) 144 :"=m"(*p)
147 :"m"(*pix) 145 :"m"(*pix)
148 :"memory"); 146 :"memory");
149 pix += line_size; p += line_size; 147 pix += line_size; p += line_size;
150 } 148 }
151 emms();
152 } 149 }
153 150
154 static void DEF(avg_pixels_x2)( UINT8 *block, const UINT8 *pixels, int line_size, int h) 151 static void DEF(avg_pixels_x2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
155 { 152 {
156 int dh, hh; 153 int dh, hh;
190 "movq %%mm0, %0\n\t" 187 "movq %%mm0, %0\n\t"
191 :"=m"(*p) 188 :"=m"(*p)
192 :"m"(*pix) 189 :"m"(*pix)
193 :"memory"); 190 :"memory");
194 } 191 }
195 emms();
196 } 192 }
197 193
198 static void DEF(avg_pixels_y2)( UINT8 *block, const UINT8 *pixels, int line_size, int h) 194 static void DEF(avg_pixels_y2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
199 { 195 {
200 int dh, hh; 196 int dh, hh;
234 "movq %%mm0, %0\n\t" 230 "movq %%mm0, %0\n\t"
235 :"=m"(*p) 231 :"=m"(*p)
236 :"m"(*pix), "m"(*(pix+line_size)) 232 :"m"(*pix), "m"(*(pix+line_size))
237 :"memory"); 233 :"memory");
238 } 234 }
239 emms();
240 } 235 }
241 236
242 static void DEF(avg_pixels_xy2)( UINT8 *block, const UINT8 *pixels, int line_size, int h) 237 static void DEF(avg_pixels_xy2)( UINT8 *block, const UINT8 *pixels, int line_size, int h)
243 { 238 {
244 UINT8 *p; 239 UINT8 *p;
285 "m"(*(pix+line_size)) 280 "m"(*(pix+line_size))
286 :"memory"); 281 :"memory");
287 pix += line_size; 282 pix += line_size;
288 p += line_size ; 283 p += line_size ;
289 } while(--h); 284 } while(--h);
290 emms();
291 } 285 }
292 286
293 static void DEF(sub_pixels_x2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h) 287 static void DEF(sub_pixels_x2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
294 { 288 {
295 DCTELEM *p; 289 DCTELEM *p;
315 :"m"(*pix) 309 :"m"(*pix)
316 :"memory"); 310 :"memory");
317 pix += line_size; 311 pix += line_size;
318 p += 8; 312 p += 8;
319 } while (--h); 313 } while (--h);
320 emms();
321 } 314 }
322 315
323 static void DEF(sub_pixels_y2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h) 316 static void DEF(sub_pixels_y2)( DCTELEM *block, const UINT8 *pixels, int line_size, int h)
324 { 317 {
325 DCTELEM *p; 318 DCTELEM *p;
345 :"m"(*pix), "m"(*(pix+line_size)) 338 :"m"(*pix), "m"(*(pix+line_size))
346 :"memory"); 339 :"memory");
347 pix += line_size; 340 pix += line_size;
348 p += 8; 341 p += 8;
349 } while (--h); 342 } while (--h);
350 emms(); 343 }
351 } 344
352