]> git.sesse.net Git - vlc/blobdiff - include/tests.h
* Bug fixes and enhancements in the Gtk+/Gnome interfaces.
[vlc] / include / tests.h
index 9555d0b445fb089221c0a54e4cb05b0fea251c18..c6bd76183bd3252b6f70c785771ee274fd13a030 100644 (file)
@@ -3,7 +3,7 @@
  *****************************************************************************
  * Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN
  *
- * Authors:
+ * Authors: Samuel Hocevar <sam@zoy.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,10 +43,16 @@ int TestCPU( int i_capabilities );
  *****************************************************************************/
 static __inline__ int CPUCapabilities( void )
 {
-    int         i_capabilities = CPU_CAPABILITY_NONE;
+#ifdef SYS_BEOS
+    return( CPU_CAPABILITY_NONE
+            | CPU_CAPABILITY_486
+            | CPU_CAPABILITY_586
+            | CPU_CAPABILITY_MMX );
+#else
+    int           i_capabilities = CPU_CAPABILITY_NONE;
 #ifdef __i386__
-    int         i_eax, i_ebx, i_ecx, i_edx;
-    boolean_t   b_amd;
+    unsigned int  i_eax, i_ebx, i_ecx, i_edx;
+    boolean_t     b_amd;
 
 #define cpuid( a )                 \
     asm volatile ( "cpuid"         \
@@ -131,5 +137,6 @@ static __inline__ int CPUCapabilities( void )
 #endif /* __i386__ */
 
     return( i_capabilities );
+#endif /* SYS_BEOS */
 }