]> git.sesse.net Git - vlc/blobdiff - include/vlc_cpu.h
Always defined CPU_CAPABILITY_*
[vlc] / include / vlc_cpu.h
index 8afe43655b4546b2c5046afb16ea74f518dff1d8..7997770ce0b75df0601a814b7300fb5e7d359c61 100644 (file)
 #  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?