]> git.sesse.net Git - vlc/blobdiff - include/vlc_cpu.h
remoteosd: handle VLC_ADD_LIBS
[vlc] / include / vlc_cpu.h
index 197dba64c1ce614cfe627a6d407915d7fc9aaa44..107e7d599d164aada4b28525d958cb02b7c81c67 100644 (file)
 #  define CPU_CAPABILITY_SSE4_1  (1<<10)
 #  define CPU_CAPABILITY_SSE4_2  (1<<11)
 #  define CPU_CAPABILITY_SSE4A   (1<<12)
+
+# if defined (__MMX__)
+#  define VLC_MMX
+# elif VLC_GCC_VERSION(4, 4)
+#  define VLC_MMX __attribute__ ((__target__ ("mmx")))
+# else
+#  define VLC_MMX VLC_MMX_is_not_implemented_on_this_compiler
+# endif
+
+# if defined (__SSE__)
+#  define VLC_SSE
+# elif VLC_GCC_VERSION(4, 4)
+#  define VLC_SSE __attribute__ ((__target__ ("sse")))
+# else
+#  define VLC_SSE VLC_SSE_is_not_implemented_on_this_compiler
+# endif
+
 # else
 #  define CPU_CAPABILITY_MMX     (0)
 #  define CPU_CAPABILITY_3DNOW   (0)
@@ -62,8 +79,7 @@
 #  define CPU_CAPABILITY_NEON    (0)
 # endif
 
-VLC_EXPORT( unsigned, vlc_CPU, ( void ) );
-VLC_EXPORT( unsigned, vlc_GetCPUCount, ( void ) );
+VLC_API unsigned vlc_CPU( void );
 
 /** Are floating point operations fast?
  * If this bit is not set, you should try to use fixed-point instead.
@@ -86,9 +102,8 @@ VLC_EXPORT( unsigned, vlc_GetCPUCount, ( void ) );
 # endif
 
 typedef void *(*vlc_memcpy_t) (void *tgt, const void *src, size_t n);
-typedef void *(*vlc_memset_t) (void *tgt, int c, size_t n);
 
-VLC_EXPORT( void, vlc_fastmem_register, (vlc_memcpy_t cpy, vlc_memset_t set) );
+VLC_API void vlc_fastmem_register(vlc_memcpy_t cpy);
 
 #endif /* !VLC_CPU_H */