summaryrefslogtreecommitdiff
path: root/src/post/goom/mmx.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2006-02-04 14:06:29 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2006-02-04 14:06:29 +0000
commit5e7976e7ef58bab9ae5b55a87acf369868c7a955 (patch)
treeda401376cbc246720f041133976a8c5a7e8eadf7 /src/post/goom/mmx.h
parentae4c5b53d2d0f540c95fb11c993de003842075a7 (diff)
downloadxine-lib-5e7976e7ef58bab9ae5b55a87acf369868c7a955.tar.gz
xine-lib-5e7976e7ef58bab9ae5b55a87acf369868c7a955.tar.bz2
Enable AMD64 mmx/sse support in some plugins (tvtime, libmpeg2, goom...)
patch by dani3l CVS patchset: 7867 CVS date: 2006/02/04 14:06:29
Diffstat (limited to 'src/post/goom/mmx.h')
-rwxr-xr-xsrc/post/goom/mmx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/post/goom/mmx.h b/src/post/goom/mmx.h
index 3fae26b98..b650d8b12 100755
--- a/src/post/goom/mmx.h
+++ b/src/post/goom/mmx.h
@@ -27,6 +27,10 @@
#ifndef _MMX_H
#define _MMX_H
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "goom_graphic.h"
/* Warning: at this writing, the version of GAS packaged
@@ -69,6 +73,9 @@ mm_support(void)
13 if AMD Extended MMX, &3dNow supported
0 if hardware does not support any of these
*/
+#ifdef ARCH_X86_64
+ return 13;
+#else
register int rval = 0;
__asm__ __volatile__ (
@@ -223,6 +230,7 @@ mm_support(void)
/* Return */
return(rval);
+#endif
}
/* Function to test if mmx instructions are supported...