From c34fa140d0c16ce688e42947a8668049ce22cdb7 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 26 Feb 2008 10:09:38 +0000 Subject: 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. --- gst/goom/mmx.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gst/goom/mmx.c') 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 */ -- cgit