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_SPARC_H
0009 #define BOOST_PREDEF_ARCHITECTURE_SPARC_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_ARCH_SPARC`
0016 
0017 http://en.wikipedia.org/wiki/SPARC[SPARC] architecture.
0018 
0019 [options="header"]
0020 |===
0021 | {predef_symbol} | {predef_version}
0022 
0023 | `+__sparc__+` | {predef_detection}
0024 | `+__sparc+` | {predef_detection}
0025 
0026 | `+__sparcv9+` | 9.0.0
0027 | `+__sparc_v9__+` | 9.0.0
0028 | `+__sparcv8+` | 8.0.0
0029 | `+__sparc_v8__+` | 8.0.0
0030 |===
0031 */ // end::reference[]
0032 
0033 #define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_NOT_AVAILABLE
0034 
0035 #if defined(__sparc__) || defined(__sparc)
0036 #   undef BOOST_ARCH_SPARC
0037 #   if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__))
0038 #       define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
0039 #   endif
0040 #   if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__))
0041 #       define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
0042 #   endif
0043 #   if !defined(BOOST_ARCH_SPARC)
0044 #       define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE
0045 #   endif
0046 #endif
0047 
0048 #if BOOST_ARCH_SPARC
0049 #   define BOOST_ARCH_SPARC_AVAILABLE
0050 #endif
0051 
0052 #if BOOST_ARCH_SPARC
0053 #   if BOOST_ARCH_SPARC >= BOOST_VERSION_NUMBER(9,0,0)
0054 #       undef BOOST_ARCH_WORD_BITS_64
0055 #       define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
0056 #   else
0057 #       undef BOOST_ARCH_WORD_BITS_32
0058 #       define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
0059 #   endif
0060 #endif
0061 
0062 #define BOOST_ARCH_SPARC_NAME "SPARC"
0063 
0064 #endif
0065 
0066 #include <boost/predef/detail/test.h>
0067 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SPARC,BOOST_ARCH_SPARC_NAME)