kwave  18.07.70
cputest.h
Go to the documentation of this file.
1 /***************************************************************************
2  cputest.h - defines with CPU capabilities
3  -------------------
4  begin : Mon Dec 06 2004
5  copyright : (C) 2004 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef CPUTEST_H
19 #define CPUTEST_H
20 
21 /* x86 accelerations */
22 #define MM_ACCEL_X86_MMX 0x80000000
23 #define MM_ACCEL_X86_3DNOW 0x40000000
24 #define MM_ACCEL_X86_MMXEXT 0x20000000
25 #define MM_ACCEL_X86_SSE 0x10000000
26 #define MM_ACCEL_X86_SSE2 0x08000000
27 #define MM_ACCEL_X86_SSE3 0x04000000
28 #define MM_ACCEL_X86_SSSE3 0x02000000
29 #define MM_ACCEL_X86_SSE4 0x01000000
30 #define MM_ACCEL_X86_SSE42 0x00800000
31 #define MM_ACCEL_X86_AVX 0x00400000
32 
33 /* x86 compat defines */
34 #define MM_MMX MM_ACCEL_X86_MMX
35 #define MM_3DNOW MM_ACCEL_X86_3DNOW
36 #define MM_MMXEXT MM_ACCEL_X86_MMXEXT
37 #define MM_SSE MM_ACCEL_X86_SSE
38 #define MM_SSE2 MM_ACCEL_X86_SSE2
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 uint32_t xine_mm_accel (void);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* CPUTEST_H */
51 
52 /***************************************************************************/
53 /***************************************************************************/
uint32_t xine_mm_accel(void)
Definition: cpu_accel.cpp:398