1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Make sure that sfence is used after any non temporal stores.

Originally committed as revision 30287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Zuxy Meng 2010-01-12 02:34:33 +00:00
parent 6b7c7703f4
commit 845e37e770

View File

@ -168,7 +168,7 @@
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index) \
); \
} \
__asm__ volatile (EMMS); \
__asm__ volatile (SFENCE"\n\t"EMMS); \
return srcSliceH; \
#define YUV2RGB_OPERANDS_ALPHA \
@ -176,7 +176,7 @@
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index), "r" (pa - 2*index) \
); \
} \
__asm__ volatile (EMMS); \
__asm__ volatile (SFENCE"\n\t"EMMS); \
return srcSliceH; \
static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,