diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2008-02-26 10:09:38 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2008-02-26 10:09:38 +0000 |
commit | c34fa140d0c16ce688e42947a8668049ce22cdb7 (patch) | |
tree | a33f768a8cdc09adec4cc4e9a678b781ffa48adb /gst/goom/mmx.c | |
parent | c99b95d8cb9f95cd0cec8ad736f139b6029d13c9 (diff) |
configure.ac: Detect and indicate if GCC inline assembly syntax is available.
Original commit message from CVS:
* configure.ac:
Detect and indicate if GCC inline assembly syntax is
available.
* gst/goom/Makefile.am:
* gst/goom/convolve_fx.c:
* gst/goom/flying_stars_fx.c:
* gst/goom/goom_config.h:
* gst/goom/goom_core.c:
* gst/goom/goomsl.c:
* gst/goom/ifs.c:
* gst/goom/mmx.c:
* gst/goom/plugin_info.c:
* gst/goom/xmmx.c:
Fix various GCC-isms, and only build the inline assembly
with compilers that support GCC inline assembly.
Fix a couple of other warnings shown with Forte.
Diffstat (limited to 'gst/goom/mmx.c')
-rw-r--r-- | gst/goom/mmx.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gst/goom/mmx.c b/gst/goom/mmx.c index 4cee0acb..73546a89 100644 --- a/gst/goom/mmx.c +++ b/gst/goom/mmx.c @@ -1,6 +1,10 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif -#if defined (HAVE_CPU_I386) || defined (HAVE_CPU_X86_64) +#include "goom_config.h" + +#ifdef HAVE_MMX #define BUFFPOINTNB 16 #define BUFFPOINTMASK 0xffff @@ -252,5 +256,10 @@ end_of_line: emms (); /* __asm__ __volatile__ ("emms"); */ } - -#endif /* HAVE_CPU_I386 || HAVE_CPU_X86_64 */ +#else +int +mmx_supported (void) +{ + return (0); +} +#endif /* HAVE_MMX */ |