From ba649eff2db19b80239a0faf6a2d9048ead4456b Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 29 Oct 2001 18:00:45 +0000 Subject: [PATCH] patch from Martin Decky applied and unnecassery "memory" removed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2535 b3059339-0415-0410-9bf9-f77b7e298cf2 --- postproc/swscale.c | 7 +++++-- postproc/swscale_template.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/postproc/swscale.c b/postproc/swscale.c index a4dd1a4147..3bcbb8430f 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -1436,8 +1436,11 @@ else s_xinc2= s_xinc; g16Dither2= g16Dither; #endif } -__asm __volatile(SFENCE:::"memory"); -__asm __volatile(EMMS:::"memory"); + +#ifdef HAVE_MMX + __asm __volatile(SFENCE:::"memory"); + __asm __volatile(EMMS); +#endif } diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index a4dd1a4147..3bcbb8430f 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -1436,8 +1436,11 @@ else s_xinc2= s_xinc; g16Dither2= g16Dither; #endif } -__asm __volatile(SFENCE:::"memory"); -__asm __volatile(EMMS:::"memory"); + +#ifdef HAVE_MMX + __asm __volatile(SFENCE:::"memory"); + __asm __volatile(EMMS); +#endif }