diff options
author | James Almer <jamrial@gmail.com> | 2015-06-23 01:14:42 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-06-23 13:28:03 -0300 |
commit | 0c15f2f158e11950c2a5c831787ea377b7671bf4 (patch) | |
tree | e1dfd193a001304959197e6fb0e8df43b3fb4956 /libswscale/x86 | |
parent | 910eeab48026060b5f7780b2560445c069eb4d6b (diff) | |
download | ffmpeg-0c15f2f158e11950c2a5c831787ea377b7671bf4.tar.gz |
swscale/x86/rgb2rgb_template: don't call emms on sse2/avx functions
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libswscale/x86')
-rw-r--r-- | libswscale/x86/rgb2rgb_template.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/x86/rgb2rgb_template.c b/libswscale/x86/rgb2rgb_template.c index fd04923dae..a1f7434e35 100644 --- a/libswscale/x86/rgb2rgb_template.c +++ b/libswscale/x86/rgb2rgb_template.c @@ -1943,7 +1943,9 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui src2 += src2Stride; } __asm__( +#if !COMPILE_TEMPLATE_SSE2 EMMS" \n\t" +#endif SFENCE" \n\t" ::: "memory" ); @@ -1971,7 +1973,9 @@ static void RENAME(deinterleaveBytes)(const uint8_t *src, uint8_t *dst1, uint8_t dst2 += dst2Stride; } __asm__( +#if !COMPILE_TEMPLATE_SSE2 EMMS" \n\t" +#endif SFENCE" \n\t" ::: "memory" ); |