1 |
int check_cpu_features(void); |
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - emms related header - |
5 |
|
* |
6 |
|
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
|
* |
8 |
|
* This program is free software ; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id: emms.h,v 1.14 2004-03-22 22:36:24 edgomez Exp $ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
|
#ifndef _EMMS_H_ |
27 |
|
#define _EMMS_H_ |
28 |
|
|
29 |
|
/***************************************************************************** |
30 |
|
* emms API |
31 |
|
****************************************************************************/ |
32 |
|
|
33 |
typedef void (emmsFunc) (); |
typedef void (emmsFunc) (); |
34 |
|
|
35 |
typedef emmsFunc *emmsFuncPtr; |
typedef emmsFunc *emmsFuncPtr; |
36 |
|
|
37 |
|
/* Our global function pointer - defined in emms.c */ |
38 |
extern emmsFuncPtr emms; |
extern emmsFuncPtr emms; |
39 |
|
|
40 |
|
/* Implemented functions */ |
41 |
|
|
42 |
emmsFunc emms_c; |
emmsFunc emms_c; |
43 |
|
|
44 |
|
#ifdef ARCH_IS_IA32 |
45 |
emmsFunc emms_mmx; |
emmsFunc emms_mmx; |
46 |
|
emmsFunc emms_3dn; |
47 |
|
#endif |
48 |
|
|
49 |
|
/***************************************************************************** |
50 |
|
* Prototypes |
51 |
|
****************************************************************************/ |
52 |
|
|
53 |
|
#ifdef ARCH_IS_IA32 |
54 |
|
/* cpu_flag detection helper functions */ |
55 |
|
extern int check_cpu_features(void); |
56 |
|
extern void sse_os_trigger(void); |
57 |
|
extern void sse2_os_trigger(void); |
58 |
|
#endif |
59 |
|
|
60 |
|
|
61 |
|
#endif |