comparison libmpcodecs/vf_pp7.c @ 27754:08d18fe9da52

Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg. Neither variant is valid C99 syntax, but __asm__ is the most portable variant.
author diego
date Thu, 16 Oct 2008 18:59:27 +0000
parents 82601a38e2a7
children 25337a2147e7
comparison
equal deleted inserted replaced
27753:6c915906bbc6 27754:08d18fe9da52
155 } 155 }
156 } 156 }
157 157
158 #ifdef HAVE_MMX 158 #ifdef HAVE_MMX
159 static void dctB_mmx(DCTELEM *dst, DCTELEM *src){ 159 static void dctB_mmx(DCTELEM *dst, DCTELEM *src){
160 asm volatile ( 160 __asm__ volatile (
161 "movq (%0), %%mm0 \n\t" 161 "movq (%0), %%mm0 \n\t"
162 "movq 1*4*2(%0), %%mm1 \n\t" 162 "movq 1*4*2(%0), %%mm1 \n\t"
163 "paddw 6*4*2(%0), %%mm0 \n\t" 163 "paddw 6*4*2(%0), %%mm0 \n\t"
164 "paddw 5*4*2(%0), %%mm1 \n\t" 164 "paddw 5*4*2(%0), %%mm1 \n\t"
165 "movq 2*4*2(%0), %%mm2 \n\t" 165 "movq 2*4*2(%0), %%mm2 \n\t"
396 memcpy_pic(dmpi->planes[1], mpi->planes[1], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, dmpi->stride[1], mpi->stride[1]); 396 memcpy_pic(dmpi->planes[1], mpi->planes[1], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, dmpi->stride[1], mpi->stride[1]);
397 memcpy_pic(dmpi->planes[2], mpi->planes[2], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, dmpi->stride[2], mpi->stride[2]); 397 memcpy_pic(dmpi->planes[2], mpi->planes[2], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, dmpi->stride[2], mpi->stride[2]);
398 } 398 }
399 399
400 #ifdef HAVE_MMX 400 #ifdef HAVE_MMX
401 if(gCpuCaps.hasMMX) asm volatile ("emms\n\t"); 401 if(gCpuCaps.hasMMX) __asm__ volatile ("emms\n\t");
402 #endif 402 #endif
403 #ifdef HAVE_MMX2 403 #ifdef HAVE_MMX2
404 if(gCpuCaps.hasMMX2) asm volatile ("sfence\n\t"); 404 if(gCpuCaps.hasMMX2) __asm__ volatile ("sfence\n\t");
405 #endif 405 #endif
406 406
407 return vf_next_put_image(vf,dmpi, pts); 407 return vf_next_put_image(vf,dmpi, pts);
408 } 408 }
409 409