const int64_t fone= 1LL<<54;
int ret= -1;
- if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX)
- __asm__ volatile("emms\n\t"::: "memory"); //FIXME this should not be required but it IS (even for non-MMX versions)
+ emms_c(); //FIXME this should not be required but it IS (even for non-MMX versions)
// NOTE: the +1 is for the MMX scaler which reads over the end
FF_ALLOC_OR_GOTO(NULL, *filterPos, (dstW+1)*sizeof(int16_t), fail);
cpu_flags = av_get_cpu_flags();
flags = c->flags;
- if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX)
- __asm__ volatile("emms\n\t"::: "memory");
+ emms_c();
if (!rgb15to16) sws_rgb2rgb_init();
unscaled = (srcW == dstW && srcH == dstH);
fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
if (COMPILE_TEMPLATE_MMX2) __asm__ volatile("sfence":::"memory");
- __asm__ volatile("emms" :::"memory");
+ emms_c();
/* store changed local vars back in the context */
c->dstY= dstY;