1/*
2Copyright Rene Rivera 2008-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_ARCHITECTURE_M68K_H
9#define BOOST_PREDEF_ARCHITECTURE_M68K_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/*`
15[heading `BOOST_ARCH_M68K`]
16
17[@http://en.wikipedia.org/wiki/M68k Motorola 68k] architecture.
18
19[table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`__m68k__`] [__predef_detection__]]
23 [[`M68000`] [__predef_detection__]]
24
25 [[`__mc68060__`] [6.0.0]]
26 [[`mc68060`] [6.0.0]]
27 [[`__mc68060`] [6.0.0]]
28 [[`__mc68040__`] [4.0.0]]
29 [[`mc68040`] [4.0.0]]
30 [[`__mc68040`] [4.0.0]]
31 [[`__mc68030__`] [3.0.0]]
32 [[`mc68030`] [3.0.0]]
33 [[`__mc68030`] [3.0.0]]
34 [[`__mc68020__`] [2.0.0]]
35 [[`mc68020`] [2.0.0]]
36 [[`__mc68020`] [2.0.0]]
37 [[`__mc68010__`] [1.0.0]]
38 [[`mc68010`] [1.0.0]]
39 [[`__mc68010`] [1.0.0]]
40 [[`__mc68000__`] [0.0.1]]
41 [[`mc68000`] [0.0.1]]
42 [[`__mc68000`] [0.0.1]]
43 ]
44 */
45
46#define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_NOT_AVAILABLE
47
48#if defined(__m68k__) || defined(M68000)
49# undef BOOST_ARCH_M68K
50# if !defined(BOOST_ARCH_M68K) && (defined(__mc68060__) || defined(mc68060) || defined(__mc68060))
51# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(6,0,0)
52# endif
53# if !defined(BOOST_ARCH_M68K) && (defined(__mc68040__) || defined(mc68040) || defined(__mc68040))
54# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(4,0,0)
55# endif
56# if !defined(BOOST_ARCH_M68K) && (defined(__mc68030__) || defined(mc68030) || defined(__mc68030))
57# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(3,0,0)
58# endif
59# if !defined(BOOST_ARCH_M68K) && (defined(__mc68020__) || defined(mc68020) || defined(__mc68020))
60# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(2,0,0)
61# endif
62# if !defined(BOOST_ARCH_M68K) && (defined(__mc68010__) || defined(mc68010) || defined(__mc68010))
63# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER(1,0,0)
64# endif
65# if !defined(BOOST_ARCH_M68K) && (defined(__mc68000__) || defined(mc68000) || defined(__mc68000))
66# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_AVAILABLE
67# endif
68# if !defined(BOOST_ARCH_M68K)
69# define BOOST_ARCH_M68K BOOST_VERSION_NUMBER_AVAILABLE
70# endif
71#endif
72
73#if BOOST_ARCH_M68K
74# define BOOST_ARCH_M68K_AVAILABLE
75#endif
76
77#define BOOST_ARCH_M68K_NAME "Motorola 68k"
78
79#endif
80
81#include <boost/predef/detail/test.h>
82BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_M68K,BOOST_ARCH_M68K_NAME)
83