xine-lib  1.2.9
cpu_info.h
Go to the documentation of this file.
1 #ifndef CPU_INFO_H
2 #define CPU_INFO_H
3 
4 /*
5  * cpu_info.h
6  * Goom
7  *
8  * Created by Guillaume Borios on Sun Dec 28 2003.
9  * Copyright (c) 2003 iOS. All rights reserved.
10  *
11  */
12 
13 #ifdef HAVE_MMX
14 #ifndef CPU_X86
15 #define CPU_X86
16 #endif
17 #endif
18 
19 /* Returns the CPU flavour described with the constants below */
20 unsigned int cpu_flavour (void);
21 
22 #define CPU_OPTION_ALTIVEC 0x1
23 #define CPU_OPTION_64_BITS 0x2
24 #define CPU_OPTION_MMX 0x4
25 #define CPU_OPTION_XMMX 0x8
26 #define CPU_OPTION_SSE 0x10
27 #define CPU_OPTION_SSE2 0x20
28 #define CPU_OPTION_3DNOW 0x40
29 
30 
31 /* Returns the CPU number */
32 unsigned int cpu_number (void);
33 
34 #endif
unsigned int cpu_flavour(void)
Definition: cpu_info.c:65
unsigned int cpu_number(void)
Definition: cpu_info.c:71