Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencommon_x86_features.h
Go to the documentation of this file.
00001 00002 /* 00003 * Mesa 3-D graphics library 00004 * Version: 5.1 00005 * 00006 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. 00007 * 00008 * Permission is hereby granted, free of charge, to any person obtaining a 00009 * copy of this software and associated documentation files (the "Software"), 00010 * to deal in the Software without restriction, including without limitation 00011 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00012 * and/or sell copies of the Software, and to permit persons to whom the 00013 * Software is furnished to do so, subject to the following conditions: 00014 * 00015 * The above copyright notice and this permission notice shall be included 00016 * in all copies or substantial portions of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00019 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00020 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00021 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00022 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00023 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00024 */ 00025 00026 /* 00027 * x86 CPUID feature information. The raw data is returned by 00028 * _mesa_identify_x86_cpu_features() and interpreted with the cpu_has_* 00029 * helper macros. 00030 * 00031 * Gareth Hughes 00032 */ 00033 00034 #ifndef __COMMON_X86_FEATURES_H__ 00035 #define __COMMON_X86_FEATURES_H__ 00036 00037 #define X86_FEATURE_FPU (1<<0) 00038 #define X86_FEATURE_CMOV (1<<1) 00039 #define X86_FEATURE_MMXEXT (1<<2) 00040 #define X86_FEATURE_MMX (1<<3) 00041 #define X86_FEATURE_FXSR (1<<4) 00042 #define X86_FEATURE_XMM (1<<5) 00043 #define X86_FEATURE_XMM2 (1<<6) 00044 #define X86_FEATURE_3DNOWEXT (1<<7) 00045 #define X86_FEATURE_3DNOW (1<<8) 00046 00047 /* standard X86 CPU features */ 00048 #define X86_CPU_FPU (1<<0) 00049 #define X86_CPU_CMOV (1<<15) 00050 #define X86_CPU_MMX (1<<23) 00051 #define X86_CPU_XMM (1<<25) 00052 #define X86_CPU_XMM2 (1<<26) 00053 00054 /* extended X86 CPU features */ 00055 #define X86_CPUEXT_MMX_EXT (1<<22) 00056 #define X86_CPUEXT_3DNOW_EXT (1<<30) 00057 #define X86_CPUEXT_3DNOW (1<<31) 00058 00059 #define cpu_has_mmx (_mesa_x86_cpu_features & X86_FEATURE_MMX) 00060 #define cpu_has_mmxext (_mesa_x86_cpu_features & X86_FEATURE_MMXEXT) 00061 #define cpu_has_xmm (_mesa_x86_cpu_features & X86_FEATURE_XMM) 00062 #define cpu_has_xmm2 (_mesa_x86_cpu_features & X86_FEATURE_XMM2) 00063 #define cpu_has_3dnow (_mesa_x86_cpu_features & X86_FEATURE_3DNOW) 00064 #define cpu_has_3dnowext (_mesa_x86_cpu_features & X86_FEATURE_3DNOWEXT) 00065 00066 #endif 00067 Generated on Fri May 25 2012 04:18:57 for ReactOS by
1.7.6.1
|