Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
 
2
 * Mesa 3-D graphics library
3
 *
4
 * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a
7
 * copy of this software and associated documentation files (the "Software"),
8
 * to deal in the Software without restriction, including without limitation
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
 * and/or sell copies of the Software, and to permit persons to whom the
11
 * Software is furnished to do so, subject to the following conditions:
12
 *
13
 * The above copyright notice and this permission notice shall be included
14
 * in all copies or substantial portions of the Software.
15
 *
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
 * OTHER DEALINGS IN THE SOFTWARE.
23
 */
24
25
 
26
 * x86 CPUID feature information.  The raw data is returned by
27
 * _mesa_identify_x86_cpu_features() and interpreted with the cpu_has_*
28
 * helper macros.
29
 *
30
 * Gareth Hughes
31
 */
32
33
 
34
#define __COMMON_X86_FEATURES_H__
35
36
 
37
#define X86_FEATURE_CMOV	(1<<1)
38
#define X86_FEATURE_MMXEXT	(1<<2)
39
#define X86_FEATURE_MMX		(1<<3)
40
#define X86_FEATURE_FXSR	(1<<4)
41
#define X86_FEATURE_XMM		(1<<5)
42
#define X86_FEATURE_XMM2	(1<<6)
43
#define X86_FEATURE_3DNOWEXT	(1<<7)
44
#define X86_FEATURE_3DNOW	(1<<8)
45
46
 
47
#define X86_CPU_FPU		(1<<0)
48
#define X86_CPU_CMOV		(1<<15)
49
#define X86_CPU_MMX		(1<<23)
50
#define X86_CPU_XMM		(1<<25)
51
#define X86_CPU_XMM2		(1<<26)
52
53
 
54
#define X86_CPUEXT_MMX_EXT	(1<<22)
55
#define X86_CPUEXT_3DNOW_EXT	(1<<30)
56
#define X86_CPUEXT_3DNOW	(1<<31)
57
58
 
59
#define cpu_has_mmxext		(_mesa_x86_cpu_features & X86_FEATURE_MMXEXT)
60
#define cpu_has_xmm		(_mesa_x86_cpu_features & X86_FEATURE_XMM)
61
#define cpu_has_xmm2		(_mesa_x86_cpu_features & X86_FEATURE_XMM2)
62
#define cpu_has_3dnow		(_mesa_x86_cpu_features & X86_FEATURE_3DNOW)
63
#define cpu_has_3dnowext	(_mesa_x86_cpu_features & X86_FEATURE_3DNOWEXT)
64
65
 
66
67