diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index acb53ea4aa..eda2ccc83a 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -1576,6 +1576,44 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u const unsigned chromWidth= width>>1; for(y=0; yyuy2 + #if __WORDSIZE >= 64 int i; uint64_t *ldst = (uint64_t *) dst; @@ -1602,6 +1640,7 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u uc++; vc++; } +#endif #endif if((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) ) { @@ -1611,6 +1650,11 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u ysrc += lumStride; dst += dstStride; } +#ifdef HAVE_MMX +asm( EMMS" \n\t" + SFENCE" \n\t" + :::"memory"); +#endif } /**