ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

common_ppc_features.h
Go to the documentation of this file.
00001 /*
00002  * (C) Copyright IBM Corporation 2004
00003  * All Rights Reserved.
00004  *
00005  * Permission is hereby granted, free of charge, to any person obtaining a
00006  * copy of this software and associated documentation files (the "Software"),
00007  * to deal in the Software without restriction, including without limitation
00008  * on the rights to use, copy, modify, merge, publish, distribute, sub
00009  * license, and/or sell copies of the Software, and to permit persons to whom
00010  * the Software is furnished to do so, subject to the following conditions:
00011  *
00012  * The above copyright notice and this permission notice (including the next
00013  * paragraph) shall be included in all copies or substantial portions of the
00014  * Software.
00015  *
00016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
00019  * IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
00020  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
00021  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
00022  * USE OR OTHER DEALINGS IN THE SOFTWARE.
00023  */
00024 
00032 #ifndef COMMON_PPC_FEATURES_H
00033 #define COMMON_PPC_FEATURES_H
00034 
00035 #ifdef USE_PPC_ASM
00036 #include <asm/cputable.h>
00037 
00038 extern unsigned long _mesa_ppc_cpu_features;
00039 
00040 
00041 /* The PPC_FEATURE_* values come from asm/cputable.h.  Should we define
00042  * versions of them here if that file does not exist?  This will only
00043  * matter once these code paths are supported on non-Linux platforms.
00044  */
00045 
00046 #define cpu_has_64  ((_mesa_ppc_cpu_features & PPC_FEATURE_64) != 0)
00047 #define cpu_has_vmx ((_mesa_ppc_cpu_features & PPC_FEATURE_HAS_ALTIVEC) != 0)
00048 #define cpu_has_fpu ((_mesa_ppc_cpu_features & PPC_FEATURE_HAS_FPU) != 0)
00049 
00050 #endif /* USE_PPC_ASM */
00051 
00052 extern void _mesa_init_all_ppc_transform_asm( void );
00053 
00054 #endif /* COMMON_PPC_FEATURES_H */

Generated on Sat May 26 2012 04:19:19 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.