* tests.h: several test functions needed by the plugins
*****************************************************************************
* Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN
+ * $Id: tests.h,v 1.11 2001/05/30 17:03:11 sam Exp $
*
- * 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
+#define CPU_CAPABILITY_NONE 0
+#define CPU_CAPABILITY_486 1<<0
+#define CPU_CAPABILITY_586 1<<1
+#define CPU_CAPABILITY_PPRO 1<<2
+#define CPU_CAPABILITY_MMX 1<<3
+#define CPU_CAPABILITY_3DNOW 1<<4
+#define CPU_CAPABILITY_MMXEXT 1<<5
+#define CPU_CAPABILITY_SSE 1<<6
+#define CPU_CAPABILITY_ALTIVEC 1<<16
+
/*****************************************************************************
- * Prototypes
+ * TestVersion: tests if the given string equals the current version
*****************************************************************************/
-int TestProgram( char * psz_program );
-int TestMethod( char * psz_var, char * psz_method );
-int TestVersion( char * psz_version );
-int TestMMX( void );
+int TestProgram ( char * );
+int TestMethod ( char *, char * );
+int TestCPU ( int );