changeset 2534:cc9d3fd626f0

patch from Martin Decky <deckm1am@ss1000.ms.mff.cuni.cz> applied and unnecassery "memory" removed
author michael
date Mon, 29 Oct 2001 18:00:45 +0000
parents 36a9317a2afc
children b44113f46c96
files postproc/swscale.c postproc/swscale_template.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Mon Oct 29 16:56:36 2001 +0000
+++ b/postproc/swscale.c	Mon Oct 29 18:00:45 2001 +0000
@@ -1436,8 +1436,11 @@
 	g16Dither2= g16Dither;
 #endif
   }
-__asm __volatile(SFENCE:::"memory");
-__asm __volatile(EMMS:::"memory");
+
+#ifdef HAVE_MMX
+	__asm __volatile(SFENCE:::"memory");
+	__asm __volatile(EMMS);
+#endif
 }
 
 
--- a/postproc/swscale_template.c	Mon Oct 29 16:56:36 2001 +0000
+++ b/postproc/swscale_template.c	Mon Oct 29 18:00:45 2001 +0000
@@ -1436,8 +1436,11 @@
 	g16Dither2= g16Dither;
 #endif
   }
-__asm __volatile(SFENCE:::"memory");
-__asm __volatile(EMMS:::"memory");
+
+#ifdef HAVE_MMX
+	__asm __volatile(SFENCE:::"memory");
+	__asm __volatile(EMMS);
+#endif
 }