2 Copyright Redshift Software, Inc. 2008-2013
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_PREDEF_ARCHITECTURE_SUPERH_H
9 #define BOOST_PREDEF_ARCHITECTURE_SUPERH_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_ARCH_SH`]
17 [@http://en.wikipedia.org/wiki/SuperH SuperH] architecture:
18 If available versions \[1-5\] are specifically detected.
21 [[__predef_symbol__] [__predef_version__]]
23 [[`__sh__`] [__predef_detection__]]
34 #define BOOST_ARCH_SH BOOST_VERSION_NUMBER_NOT_AVAILABLE
38 # if !defined(BOOST_ARCH_SH) && (defined(__SH5__))
39 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER(5,0,0)
41 # if !defined(BOOST_ARCH_SH) && (defined(__SH4__))
42 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER(4,0,0)
44 # if !defined(BOOST_ARCH_SH) && (defined(__sh3__) || defined(__SH3__))
45 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER(3,0,0)
47 # if !defined(BOOST_ARCH_SH) && (defined(__sh2__))
48 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER(2,0,0)
50 # if !defined(BOOST_ARCH_SH) && (defined(__sh1__))
51 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER(1,0,0)
53 # if !defined(BOOST_ARCH_SH)
54 # define BOOST_ARCH_SH BOOST_VERSION_NUMBER_AVAILABLE
59 # define BOOST_ARCH_SH_AVAILABLE
62 #define BOOST_ARCH_SH_NAME "SuperH"
64 #include <boost/predef/detail/test.h>
65 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SH,BOOST_ARCH_SH_NAME)