Commit ab35fe94 authored by zuxy's avatar zuxy

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


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30287 b3059339-0415-0410-9bf9-f77b7e298cf2
parent bb3cfd42
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index) \ : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index) \
); \ ); \
} \ } \
__asm__ volatile (EMMS); \ __asm__ volatile (SFENCE"\n\t"EMMS); \
return srcSliceH; \ return srcSliceH; \
#define YUV2RGB_OPERANDS_ALPHA \ #define YUV2RGB_OPERANDS_ALPHA \
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index), "r" (pa - 2*index) \ : "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; \ return srcSliceH; \
static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment