Files
boost_predef/include/boost/predef/architecture/superh.h
T

54 lines
1.4 KiB
C
Raw Normal View History

/*
Copyright Redshift Software, Inc. 2008-2012
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
#ifndef BOOST_PREDEF_ARCHITECTURE_SUPERH_H
#define BOOST_PREDEF_ARCHITECTURE_SUPERH_H
2008-04-04 18:47:29 +00:00
#include <boost/predef/version_number.h>
#include <boost/predef/make.h>
/*`
[heading `BOOST_ARCH_SH`]
[@http://en.wikipedia.org/wiki/SuperH SuperH] architecture:
If available versions \[1-5\] are specifically detected.
[table
[[__predef_symbol__] [__predef_version__]]
[[`____`] [__predef_detection__]]
[[`____`] [V.R.P]]
]
*/
2008-04-04 18:47:29 +00:00
#define BOOST_ARCH_SH BOOST_VERSION_NUMBER(0,0,0)
2008-04-04 18:47:29 +00:00
#if defined(__sh__)
# undef BOOST_ARCH_SH
# if 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
2008-04-04 18:47:29 +00:00
#endif
#define BOOST_ARCH_SH_NAME "SuperH"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SH,BOOST_ARCH_SH_NAME)
2008-04-04 18:47:29 +00:00
#endif