*****************************************************************************
* 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
*****************************************************************************/
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" \
#endif /* __i386__ */
return( i_capabilities );
+#endif /* SYS_BEOS */
}