UDK 3.2.7 C/C++ API Reference
osl/armarch.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* -----------------------------------------------------------------------
00003    Copyright (c) 1998, 2008 Red Hat, Inc.
00004 
00005    Permission is hereby granted, free of charge, to any person obtaining
00006    a copy of this software and associated documentation files (the
00007    ``Software''), to deal in the Software without restriction, including
00008    without limitation the rights to use, copy, modify, merge, publish,
00009    distribute, sublicense, and/or sell copies of the Software, and to
00010    permit persons to whom the Software is furnished to do so, subject to
00011    the following conditions:
00012 
00013    The above copyright notice and this permission notice shall be included
00014    in all copies or substantial portions of the Software.
00015 
00016    THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
00017    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00018    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00019    NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
00020    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
00021    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00022    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00023    DEALINGS IN THE SOFTWARE.
00024    ----------------------------------------------------------------------- */
00025 
00026 // shamelessly copied from libffi src/arm/sysv.h
00027 #ifndef _OSL_ARMARCH_H_
00028 #define _OSL_ARMARCH_H_
00029 #ifdef ARM
00030 
00031 #define __ARM_ARCH__ 3
00032 
00033 #if defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__)
00034 # undef __ARM_ARCH__
00035 # define __ARM_ARCH__ 4
00036 #endif
00037 
00038 #if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) \
00039     || defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) \
00040     || defined(__ARM_ARCH_5TEJ__)
00041 # undef __ARM_ARCH__
00042 # define __ARM_ARCH__ 5
00043 #endif
00044 
00045 #if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
00046     || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \
00047     || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \
00048     || defined(__ARM_ARCH_6M__)
00049 # undef __ARM_ARCH__
00050 # define __ARM_ARCH__ 6
00051 #endif
00052 
00053 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
00054     || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__)
00055 # undef __ARM_ARCH__
00056 # define __ARM_ARCH__ 7
00057 #endif
00058 
00059 #endif
00060 #endif
00061 
00062 
00063 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines