From 5e7976e7ef58bab9ae5b55a87acf369868c7a955 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 4 Feb 2006 14:06:29 +0000 Subject: 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 --- src/post/goom/mmx.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/post/goom/mmx.h') 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... -- cgit v1.2.3