2010-05-22 20:20:04 +00:00
|
|
|
/*
|
2012-07-15 03:37:23 +00:00
|
|
|
Copyright Redshift Software, Inc. 2008-2012
|
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_MIPS_H
|
|
|
|
|
#define BOOST_PREDEF_ARCHITECTURE_MIPS_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_MIPS`]
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
[@http://en.wikipedia.org/wiki/MIPS_architecture MIPS] architecture.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
|
|
|
|
[table
|
|
|
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
|
|
2013-01-05 15:31:59 -06:00
|
|
|
[[`____`] [__predef_detection__]]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2013-01-05 15:31:59 -06:00
|
|
|
[[`____`] [V.R.P]]
|
2012-07-15 03:37:23 +00:00
|
|
|
]
|
2011-11-19 03:46:41 +00:00
|
|
|
*/
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(0,0,0)
|
2008-04-04 18:47:29 +00:00
|
|
|
|
|
|
|
|
#if defined(__mips__) || defined(__mips) || \
|
|
|
|
|
defined(__MIPS__)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_ARCH_MIPS
|
|
|
|
|
# if 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
|
2008-04-04 18:47:29 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_ARCH_MIPS_NAME "MIPS"
|
|
|
|
|
|
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_MIPS,BOOST_ARCH_MIPS_NAME)
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
|
2008-04-04 18:47:29 +00:00
|
|
|
#endif
|