forked from boostorg/predef
Most changes from review comments implemented. Remove use of "#elif" for
backward PP compatability. Add BOOST_category_item_AVAILABLE as a defined, or not, symbol for use with "#ifdef" or "#ifndef". Add documentation of macros used for detection and version information. Also replace direct use of BVN(0,0,0) and BVN(0,0,1) with more meaningful macros that are globally defined, and hence consistent.
This commit is contained in:
1 parent
68470ca33e
commit
9fcecba7cc
89 files changed
+857
-403
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright Redshift Software, Inc. 2008-2012
|
||||
Copyright Redshift Software, Inc. 2008-2013
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -26,7 +26,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__alpha__) || defined(__alpha) || \
|
||||
defined(_M_ALPHA)
|
||||
@@ -41,10 +41,14 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
# define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(6,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_ALPHA)
|
||||
# define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_ALPHA
|
||||
# define BOOST_ARCH_ALPHA_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_ALPHA_NAME "DEC Alpha"
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
|
||||
@@ -25,13 +25,17 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_AMD64 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_AMD64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__amd64__) || defined(__amd64) || \
|
||||
defined(__x86_64__) || defined(__x86_64) || \
|
||||
defined(_M_X64)
|
||||
# undef BOOST_ARCH_AMD64
|
||||
# define BOOST_ARCH_AMD64 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_AMD64 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_AMD64
|
||||
# define BOOST_ARCH_AMD64_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_AMD64_NAME "Advanced Micro Devices AMD 64"
|
||||
|
||||
@@ -29,18 +29,24 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__arm__) || defined(__thumb__) || \
|
||||
defined(__TARGET_ARCH_ARM) || defined(__TARGET_ARCH_THUMB)
|
||||
# undef BOOST_ARCH_ARM
|
||||
# if defined(__TARGET_ARCH_ARM)
|
||||
# if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
|
||||
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
|
||||
# elif defined(__TARGET_ARCH_THUMB)
|
||||
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
|
||||
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_ARM)
|
||||
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_ARM
|
||||
# define BOOST_ARCH_ARM_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_ARM_NAME "ARM"
|
||||
|
||||
@@ -29,23 +29,32 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__convex__)
|
||||
# undef BOOST_ARCH_CONVEX
|
||||
# if defined(__convex_c1__)
|
||||
# if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c1__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(1,0,0)
|
||||
# elif defined(__convex_c2__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(2,0,0)
|
||||
# elif defined(__convex_c32__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,2,0)
|
||||
# elif defined(__convex_c34__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,4,0)
|
||||
# elif defined(__convex_c38__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,8,0)
|
||||
# else
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c2__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c32__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,2,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c34__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,4,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c38__)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,8,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_CONVEX)
|
||||
# define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_CONVEX
|
||||
# define BOOST_ARCH_CONVEX_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_CONVEX_NAME "Convex Computer"
|
||||
|
||||
@@ -25,19 +25,20 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
[[`__ia64`] [__predef_detection__]]
|
||||
[[`_M_IA64`] [__predef_detection__]]
|
||||
[[`__itanium__`] [__predef_detection__]]
|
||||
[[`__x86_64`] [__predef_detection__]]
|
||||
[[`__x86_64__`] [__predef_detection__]]
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_IA64 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_IA64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__ia64__) || defined(_IA64) || \
|
||||
defined(__IA64__) || defined(__ia64) || \
|
||||
defined(_M_IA64) || defined(__itanium__) || \
|
||||
defined(__x86_64) || defined(__x86_64__)
|
||||
defined(_M_IA64) || defined(__itanium__)
|
||||
# undef BOOST_ARCH_IA64
|
||||
# define BOOST_ARCH_IA64 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_IA64 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_IA64
|
||||
# define BOOST_ARCH_IA64_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_IA64_NAME "Intel IA-64"
|
||||
|
||||
@@ -43,25 +43,35 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__m68k__) || defined(M68000)
|
||||
# undef BOOST_ARCH_M68K
|
||||
# if defined(__mc68060__) || defined(mc68060) || defined(__mc68060)
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68060__) || defined(mc68060) || defined(__mc68060))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(6,0,0)
|
||||
# elif defined(__mc68040__) || defined(mc68040) || defined(__mc68040)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(4,0,0)
|
||||
# elif defined(__mc68030__) || defined(mc68030) || defined(__mc68030)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(3,0,0)
|
||||
# elif defined(__mc68020__) || defined(mc68020) || defined(__mc68020)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(2,0,0)
|
||||
# elif defined(__mc68010__) || defined(mc68010) || defined(__mc68010)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(1,0,0)
|
||||
# elif defined(__mc68000__) || defined(mc68000) || defined(__mc68000)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(0,0,1)
|
||||
# else
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68040__) || defined(mc68040) || defined(__mc68040))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68030__) || defined(mc68030) || defined(__mc68030))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68020__) || defined(mc68020) || defined(__mc68020))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68010__) || defined(mc68010) || defined(__mc68010))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K) && (defined(__mc68000__) || defined(mc68000) || defined(__mc68000))
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_M68K)
|
||||
# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_M68K
|
||||
# define BOOST_ARCH_M68K_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_M68K_NAME "Motorola 68k"
|
||||
|
||||
@@ -36,24 +36,33 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__mips__) || defined(__mips) || \
|
||||
defined(__MIPS__)
|
||||
# undef BOOST_ARCH_MIPS
|
||||
# if defined(__mips)
|
||||
# if !defined(BOOST_ARCH_MIPS) && (defined(__mips))
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(__mips,0,0)
|
||||
# elif defined(_MIPS_ISA_MIPS1) || defined(_R3000)
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(1,0,0)
|
||||
# elif defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000)
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(2,0,0)
|
||||
# elif defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__)
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(3,0,0)
|
||||
# elif defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__)
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(4,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS1) || defined(_R3000))
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000))
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__))
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__))
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_MIPS)
|
||||
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_MIPS
|
||||
# define BOOST_ARCH_MIPS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_MIPS_NAME "MIPS"
|
||||
|
||||
@@ -34,19 +34,26 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__hppa__) || defined(__hppa) || defined(__HPPA__)
|
||||
# undef BOOST_ARCH_PARISC
|
||||
# if defined(_PA_RISC1_0)
|
||||
# if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_0))
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,0,0)
|
||||
# elif defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__)
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0)
|
||||
# elif defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__)
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__))
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__))
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_PARISC)
|
||||
# define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_PARISC
|
||||
# define BOOST_ARCH_PARISC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_PARISC_NAME "HP/PA RISC"
|
||||
|
||||
@@ -38,7 +38,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__powerpc) || defined(__powerpc__) || \
|
||||
defined(__POWERPC__) || defined(__ppc__) || \
|
||||
@@ -46,15 +46,22 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \
|
||||
defined(_XENON)
|
||||
# undef BOOST_ARCH_PPC
|
||||
# if defined(__ppc601__) || defined(_ARCH_601)
|
||||
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601))
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,1,0)
|
||||
# elif defined(__ppc603__) || defined(_ARCH_603)
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0)
|
||||
# elif defined(__ppc604__) || defined(__ppc604__)
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0)
|
||||
# else
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603))
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0)
|
||||
# endif
|
||||
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__))
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0)
|
||||
# endif
|
||||
# if !defined (BOOST_ARCH_PPC)
|
||||
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_PPC
|
||||
# define BOOST_ARCH_PPC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_PPC_NAME "PowerPC"
|
||||
|
||||
@@ -23,11 +23,15 @@ Pyramid 9810 architecture.
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_PYRAMID BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_PYRAMID BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(pyr)
|
||||
# undef BOOST_ARCH_PYRAMID
|
||||
# define BOOST_ARCH_PYRAMID BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_PYRAMID BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_PYRAMID
|
||||
# define BOOST_ARCH_PYRAMID_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_PYRAMID_NAME "Pyramid 9810"
|
||||
|
||||
@@ -27,21 +27,30 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__THW_RS6000) || defined(_IBMR2) || \
|
||||
defined(_POWER) || defined(_ARCH_PWR) || \
|
||||
defined(_ARCH_PWR2)
|
||||
# undef BOOST_ARCH_RS6000
|
||||
# define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_PWR BOOST_ARCH_RS6000
|
||||
#if BOOST_ARCH_RS6000
|
||||
# define BOOST_ARCH_RS6000_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_RS6000_NAME "RS/6000"
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_RS6000,BOOST_ARCH_RS6000_NAME)
|
||||
|
||||
#define BOOST_ARCH_PWR BOOST_ARCH_RS6000
|
||||
|
||||
#if BOOST_ARCH_PWR
|
||||
# define BOOST_ARCH_PWR_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_PWR_NAME BOOST_ARCH_RS6000_NAME
|
||||
|
||||
#endif
|
||||
@@ -27,17 +27,23 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sparc__) || defined(__sparc)
|
||||
# undef BOOST_ARCH_SPARC
|
||||
# if defined(__sparcv9)
|
||||
# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv9)
|
||||
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
|
||||
# elif defined(__sparcv8)
|
||||
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv8)
|
||||
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SPARC) &&
|
||||
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_SPARC
|
||||
# define BOOST_ARCH_SPARC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_SPARC_NAME "SPARC"
|
||||
|
||||
@@ -31,23 +31,32 @@ If available versions \[1-5\] are specifically detected.
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_SH BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_SH BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__sh__)
|
||||
# undef BOOST_ARCH_SH
|
||||
# if defined(__SH5__)
|
||||
# if !defined(BOOST_ARCH_SH) && (defined(__SH5__))
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(5,0,0)
|
||||
# elif defined(__SH4__)
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(4,0,0)
|
||||
# elif defined(__sh3__) || defined(__SH3__)
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(3,0,0)
|
||||
# elif defined(__sh2__)
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(2,0,0)
|
||||
# elif defined(__sh1__)
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(1,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SH) && (defined(__SH4__))
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SH) && (defined(__sh3__) || defined(__SH3__))
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SH) && (defined(__sh2__))
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(2,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SH) && (defined(__sh1__))
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(1,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_SH)
|
||||
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_SH
|
||||
# define BOOST_ARCH_SH_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_SH_NAME "SuperH"
|
||||
|
||||
@@ -24,11 +24,15 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__370__) || defined(__THW_370__)
|
||||
# undef BOOST_ARCH_SYS370
|
||||
# define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_SYS370
|
||||
# define BOOST_ARCH_SYS370_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_SYS370_NAME "System/370"
|
||||
|
||||
@@ -24,11 +24,15 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__s390__) || defined(__s390x__)
|
||||
# undef BOOST_ARCH_SYS390
|
||||
# define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_SYS390
|
||||
# define BOOST_ARCH_SYS390_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_SYS390_NAME "System/390"
|
||||
|
||||
@@ -11,7 +11,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
#define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_X86 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
/*`
|
||||
[heading `BOOST_ARCH_X86`]
|
||||
@@ -50,21 +50,31 @@ If available versions \[3-6\] are specifically detected.
|
||||
defined(__THW_INTEL__) || defined(__I86__) || \
|
||||
defined(__INTEL__)
|
||||
# undef BOOST_ARCH_X86
|
||||
# if defined(__I86__)
|
||||
# if !defined(BOOST_ARCH_X86) && defined(__I86__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(__I86__,0,0)
|
||||
# elif defined(_M_IX86)
|
||||
# define BOOST_ARCH_X86 BOOST_PREDEF_MAKE_10_VV00(_M_IX86)
|
||||
# elif defined(__i686__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(6,0,0)
|
||||
# elif defined(__i586__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(5,0,0)
|
||||
# elif defined(__i486__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(4,0,0)
|
||||
# elif defined(__i386__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(3,0,0)
|
||||
# else
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(0,0,1)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86) && defined(_M_IX86)
|
||||
# define BOOST_ARCH_X86 BOOST_PREDEF_MAKE_10_VV00(_M_IX86)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86) && defined(__i686__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(6,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86) && defined(__i586__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(5,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86) && defined(__i486__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(4,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86) && defined(__i386__)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER(3,0,0)
|
||||
# endif
|
||||
# if !defined(BOOST_ARCH_X86)
|
||||
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_X86
|
||||
# define BOOST_ARCH_X86_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_X86_NAME "Intel x86"
|
||||
|
||||
@@ -23,11 +23,15 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_ARCH_Z BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_ARCH_Z BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__SYSC_ZARCH__)
|
||||
# undef BOOST_ARCH_Z
|
||||
# define BOOST_ARCH_Z BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_ARCH_Z BOOST_VERSION_NUMBER_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if BOOST_ARCH_Z
|
||||
# define BOOST_ARCH_Z_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_Z_NAME "z/Architecture"
|
||||
|
||||
Reference in new issue
Block a user