[vlc-devel] commit: Always defined CPU_CAPABILITY_* (Laurent Aimar )
git version control
git at videolan.org
Tue Sep 22 23:12:51 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep 22 23:00:22 2009 +0200| [56ed95e8d4fabfe954e1f062bad6281179aa036f] | committer: Laurent Aimar
Always defined CPU_CAPABILITY_*
In case they are known to be unsupported at compilation time, they are now
defined to be zero to be nice with the compiler.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56ed95e8d4fabfe954e1f062bad6281179aa036f
---
include/vlc_cpu.h | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/include/vlc_cpu.h b/include/vlc_cpu.h
index 8afe436..7997770 100644
--- a/include/vlc_cpu.h
+++ b/include/vlc_cpu.h
@@ -35,13 +35,27 @@
# define CPU_CAPABILITY_SSE3 (1<<8)
# define CPU_CAPABILITY_SSSE3 (1<<9)
# define CPU_CAPABILITY_SSE4 (1<<10)
+# else
+# define CPU_CAPABILITY_MMX (0)
+# define CPU_CAPABILITY_3DNOW (0)
+# define CPU_CAPABILITY_MMXEXT (0)
+# define CPU_CAPABILITY_SSE (0)
+# define CPU_CAPABILITY_SSE2 (0)
+# define CPU_CAPABILITY_SSE3 (0)
+# define CPU_CAPABILITY_SSSE3 (0)
+# define CPU_CAPABILITY_SSE4 (0)
+# endif
-# elif defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)
+# if defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)
# define CPU_CAPABILITY_ALTIVEC (1<<16)
+# else
+# define CPU_CAPABILITY_ALTIVEC (0)
+# endif
-# elif defined (__arm__)
+# if defined (__arm__)
# define CPU_CAPABILITY_NEON (1<<24)
-
+# else
+# define CPU_CAPABILITY_NEON (0)
# endif
/** Are floating point oeprations fast?
More information about the vlc-devel
mailing list