From fffd2e0ac258511a044501802fba4938c53a8caf Mon Sep 17 00:00:00 2001 From: Arpi Date: Wed, 17 Oct 2001 11:57:11 +0000 Subject: [PATCH] added (f)emms Originally committed as revision 2237 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/swscale.c | 7 +++++++ postproc/swscale_template.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/postproc/swscale.c b/postproc/swscale.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + } diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + }