[MPlayer-dev-eng] swscale compatibility for non-Intel targets
Martin Decky
deckm1am at ss1000.ms.mff.cuni.cz
Mon Oct 29 17:56:49 CET 2001
Hello everybody,
the latest changes in the postproc/ directory have caused compiling
problems on IRIX64 and probably also other non-x86 platforms.
My patch is simply disabling the use of MMX instructions if they are not
available. Please check the patch for possible conflicts on other systems.
Live long and prosper!
Martin Decky
martin at decky.cz
http://www.decky.cz
"Loterry - a tax on people who can't do math."
-------------- next part --------------
--- swscale.c.old Mon Oct 29 18:50:10 2001
+++ swscale.c Mon Oct 29 18:35:30 2001
@@ -1436,8 +1436,10 @@
g16Dither2= g16Dither;
#endif
}
-__asm __volatile(SFENCE:::"memory");
-__asm __volatile(EMMS:::"memory");
+#ifdef HAVE_MMX
+ __asm __volatile(SFENCE:::"memory");
+ __asm __volatile(EMMS:::"memory");
+#endif
}
-------------- next part --------------
--- mmx.h.old Mon Oct 29 18:50:27 2001
+++ mmx.h Mon Oct 29 18:40:04 2001
@@ -1 +1,3 @@
-#include "../mmx.h"
\ No newline at end of file
+#ifdef HAVE_MXX
+#include "../mmx.h"
+#endif
\ No newline at end of file
More information about the MPlayer-dev-eng
mailing list