My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
armarch.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* -----------------------------------------------------------------------
3  Copyright (c) 1998, 2008 Red Hat, Inc.
4 
5  Permission is hereby granted, free of charge, to any person obtaining
6  a copy of this software and associated documentation files (the
7  ``Software''), to deal in the Software without restriction, including
8  without limitation the rights to use, copy, modify, merge, publish,
9  distribute, sublicense, and/or sell copies of the Software, and to
10  permit persons to whom the Software is furnished to do so, subject to
11  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,
17  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23  DEALINGS IN THE SOFTWARE.
24  ----------------------------------------------------------------------- */
25 
26 // shamelessly copied from libffi src/arm/sysv.h
27 #ifndef _OSL_ARMARCH_H_
28 #define _OSL_ARMARCH_H_
29 #ifdef ARM
30 
31 #define __ARM_ARCH__ 3
32 
33 #if defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__)
34 # undef __ARM_ARCH__
35 # define __ARM_ARCH__ 4
36 #endif
37 
38 #if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) \
39  || defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) \
40  || defined(__ARM_ARCH_5TEJ__)
41 # undef __ARM_ARCH__
42 # define __ARM_ARCH__ 5
43 #endif
44 
45 #if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
46  || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \
47  || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \
48  || defined(__ARM_ARCH_6M__)
49 # undef __ARM_ARCH__
50 # define __ARM_ARCH__ 6
51 #endif
52 
53 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
54  || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__)
55 # undef __ARM_ARCH__
56 # define __ARM_ARCH__ 7
57 #endif
58 
59 #endif
60 #endif
61 
62 
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */