2010-05-22 20:20:04 +00:00
|
|
|
/*
|
2014-01-10 08:46:03 -06:00
|
|
|
Copyright Rene Rivera 2008-2013
|
2010-05-22 20:20:04 +00:00
|
|
|
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)
|
|
|
|
|
*/
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2010-02-25 16:59:10 +00:00
|
|
|
#ifndef BOOST_PREDEF_ARCHITECTURE_SUPERH_H
|
|
|
|
|
#define BOOST_PREDEF_ARCHITECTURE_SUPERH_H
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2010-02-25 16:59:10 +00:00
|
|
|
#include <boost/predef/version_number.h>
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/make.h>
|
|
|
|
|
|
|
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_ARCH_SH`]
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
[@http://en.wikipedia.org/wiki/SuperH SuperH] architecture:
|
2011-12-01 04:04:07 +00:00
|
|
|
If available versions \[1-5\] are specifically detected.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
|
|
|
|
[table
|
|
|
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
[[`__sh__`] [__predef_detection__]]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
[[`__SH5__`] [5.0.0]]
|
|
|
|
|
[[`__SH4__`] [4.0.0]]
|
|
|
|
|
[[`__sh3__`] [3.0.0]]
|
|
|
|
|
[[`__SH3__`] [3.0.0]]
|
|
|
|
|
[[`__sh2__`] [2.0.0]]
|
|
|
|
|
[[`__sh1__`] [1.0.0]]
|
2012-07-15 03:37:23 +00:00
|
|
|
]
|
2011-11-19 03:46:41 +00:00
|
|
|
*/
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#define BOOST_ARCH_SH BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
2008-04-04 18:47:29 +00:00
|
|
|
|
|
|
|
|
#if defined(__sh__)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_ARCH_SH
|
2013-01-18 21:25:30 -06:00
|
|
|
# if !defined(BOOST_ARCH_SH) && (defined(__SH5__))
|
2012-07-15 03:37:23 +00:00
|
|
|
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(5,0,0)
|
|
|
|
|
# endif
|
2013-01-18 21:25:30 -06:00
|
|
|
# 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
|
2008-04-04 18:47:29 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_ARCH_SH_NAME "SuperH"
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SH,BOOST_ARCH_SH_NAME)
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
|
2008-04-04 18:47:29 +00:00
|
|
|
#endif
|