summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArpi <arpi@thot.banki.hu>2001-10-17 11:57:11 +0000
committerArpi <arpi@thot.banki.hu>2001-10-17 11:57:11 +0000
commitfffd2e0ac258511a044501802fba4938c53a8caf (patch)
tree36ab074a4b8e87cddb3249b4d7cf06822a61c2a3
parente72c545c934ae39486aaf8a697becf5f54139cd2 (diff)
added (f)emms
Originally committed as revision 2237 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r--postproc/swscale.c7
-rw-r--r--postproc/swscale_template.c7
2 files changed, 14 insertions, 0 deletions
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
+
+
}