Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_ARCHITECTURE_X86_32_H
0009 #define BOOST_PREDEF_ARCHITECTURE_X86_32_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_ARCH_X86_32`
0016 
0017 http://en.wikipedia.org/wiki/X86[Intel x86] architecture:
0018 If available versions [3-6] are specifically detected.
0019 
0020 [options="header"]
0021 |===
0022 | {predef_symbol} | {predef_version}
0023 
0024 | `i386` | {predef_detection}
0025 | `+__i386__+` | {predef_detection}
0026 | `+__i486__+` | {predef_detection}
0027 | `+__i586__+` | {predef_detection}
0028 | `+__i686__+` | {predef_detection}
0029 | `+__i386+` | {predef_detection}
0030 | `+_M_IX86+` | {predef_detection}
0031 | `+_X86_+` | {predef_detection}
0032 | `+__THW_INTEL__+` | {predef_detection}
0033 | `+__I86__+` | {predef_detection}
0034 | `+__INTEL__+` | {predef_detection}
0035 
0036 | `+__I86__+` | V.0.0
0037 | `+_M_IX86+` | V.0.0
0038 | `+__i686__+` | 6.0.0
0039 | `+__i586__+` | 5.0.0
0040 | `+__i486__+` | 4.0.0
0041 | `+__i386__+` | 3.0.0
0042 |===
0043 */ // end::reference[]
0044 
0045 #define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER_NOT_AVAILABLE
0046 
0047 #if defined(i386) || defined(__i386__) || \
0048     defined(__i486__) || defined(__i586__) || \
0049     defined(__i686__) || defined(__i386) || \
0050     defined(_M_IX86) || defined(_X86_) || \
0051     defined(__THW_INTEL__) || defined(__I86__) || \
0052     defined(__INTEL__)
0053 #   undef BOOST_ARCH_X86_32
0054 #   if !defined(BOOST_ARCH_X86_32) && defined(__I86__)
0055 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER(__I86__,0,0)
0056 #   endif
0057 #   if !defined(BOOST_ARCH_X86_32) && defined(_M_IX86)
0058 #       define BOOST_ARCH_X86_32 BOOST_PREDEF_MAKE_10_VV00(_M_IX86)
0059 #   endif
0060 #   if !defined(BOOST_ARCH_X86_32) && defined(__i686__)
0061 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER(6,0,0)
0062 #   endif
0063 #   if !defined(BOOST_ARCH_X86_32) && defined(__i586__)
0064 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER(5,0,0)
0065 #   endif
0066 #   if !defined(BOOST_ARCH_X86_32) && defined(__i486__)
0067 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER(4,0,0)
0068 #   endif
0069 #   if !defined(BOOST_ARCH_X86_32) && defined(__i386__)
0070 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER(3,0,0)
0071 #   endif
0072 #   if !defined(BOOST_ARCH_X86_32)
0073 #       define BOOST_ARCH_X86_32 BOOST_VERSION_NUMBER_AVAILABLE
0074 #   endif
0075 #endif
0076 
0077 #if BOOST_ARCH_X86_32
0078 #   define BOOST_ARCH_X86_32_AVAILABLE
0079 #endif
0080 
0081 #if BOOST_ARCH_X86_32
0082 #   undef BOOST_ARCH_WORD_BITS_32
0083 #   define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
0084 #endif
0085 
0086 #define BOOST_ARCH_X86_32_NAME "Intel x86-32"
0087 
0088 #include <boost/predef/architecture/x86.h>
0089 
0090 #endif
0091 
0092 #include <boost/predef/detail/test.h>
0093 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_X86_32,BOOST_ARCH_X86_32_NAME)