libvisual  0.5.0
lv_cpu.h
1 /* Libvisual - The audio visualisation framework.
2  *
3  * Copyright (C) 2012-2013 Libvisual team
4  * 2004-2006 Dennis Smit
5  *
6  * Authors: Dennis Smit <ds@nerds-incorporated.org>
7  * Chong Kai Xiong <kaixiong@codeleft.sg>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License as
11  * published by the Free Software Foundation; either version 2.1
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */
23 
24 #ifndef _LV_CPU_H
25 #define _LV_CPU_H
26 
27 #include <libvisual/lv_types.h>
28 
37 typedef enum {
45 } VisCPUType;
46 
47 LV_BEGIN_DECLS
48 
54 LV_API VisCPUType visual_cpu_get_type (void);
55 
61 LV_API unsigned int visual_cpu_get_num_cores (void);
62 
70 LV_API int visual_cpu_has_mmx (void);
71 
79 LV_API int visual_cpu_has_mmx2 (void);
80 
88 LV_API int visual_cpu_has_sse (void);
89 
97 LV_API int visual_cpu_has_sse2 (void);
98 
106 LV_API int visual_cpu_has_3dnow (void);
107 
115 LV_API int visual_cpu_has_3dnow_ext (void);
116 
124 LV_API int visual_cpu_has_altivec (void);
125 
133 LV_API int visual_cpu_has_armv7 (void);
134 
142 LV_API int visual_cpu_has_vfpv3 (void);
143 
151 LV_API int visual_cpu_has_neon (void);
152 
160 LV_API int visual_cpu_has_ldrex_strex (void);
161 
162 LV_END_DECLS
163 
168 #endif /* _LV_CPU_H */