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_X86_64_H
9#define BOOST_PREDEF_ARCHITECTURE_X86_64_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_ARCH_X86_64`
16
17http://en.wikipedia.org/wiki/Ia64[Intel IA-64] architecture.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__x86_64+` | {predef_detection}
24| `+__x86_64__+` | {predef_detection}
25| `+__amd64__+` | {predef_detection}
26| `+__amd64+` | {predef_detection}
27| `+_M_X64+` | {predef_detection}
28|===
29*/ // end::reference[]
30
31#define BOOST_ARCH_X86_64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
32
33#if defined(__x86_64) || defined(__x86_64__) || \
34 defined(__amd64__) || defined(__amd64) || \
35 defined(_M_X64)
36# undef BOOST_ARCH_X86_64
37# define BOOST_ARCH_X86_64 BOOST_VERSION_NUMBER_AVAILABLE
38#endif
39
40#if BOOST_ARCH_X86_64
41# define BOOST_ARCH_X86_64_AVAILABLE
42#endif
43
44#define BOOST_ARCH_X86_64_NAME "Intel x86-64"
45
46#include <boost/predef/architecture/x86.h>
47
48#endif
49
50#include <boost/predef/detail/test.h>
51BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_X86_64,BOOST_ARCH_X86_64_NAME)
52

source code of include/boost/predef/architecture/x86/64.h