64.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. Copyright Rene Rivera 2008-2015
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_PREDEF_ARCHITECTURE_X86_64_H
  8. #define BOOST_PREDEF_ARCHITECTURE_X86_64_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_ARCH_X86_64`]
  13. [@http://en.wikipedia.org/wiki/Ia64 Intel IA-64] architecture.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__x86_64`] [__predef_detection__]]
  17. [[`__x86_64__`] [__predef_detection__]]
  18. [[`__amd64__`] [__predef_detection__]]
  19. [[`__amd64`] [__predef_detection__]]
  20. [[`_M_X64`] [__predef_detection__]]
  21. ]
  22. */
  23. #define BOOST_ARCH_X86_64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__x86_64) || defined(__x86_64__) || \
  25. defined(__amd64__) || defined(__amd64) || \
  26. defined(_M_X64)
  27. # undef BOOST_ARCH_X86_64
  28. # define BOOST_ARCH_X86_64 BOOST_VERSION_NUMBER_AVAILABLE
  29. #endif
  30. #if BOOST_ARCH_X86_64
  31. # define BOOST_ARCH_X86_64_AVAILABLE
  32. #endif
  33. #define BOOST_ARCH_X86_64_NAME "Intel x86-64"
  34. #include <boost/predef/architecture/x86.h>
  35. #endif
  36. #include <boost/predef/detail/test.h>
  37. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_X86_64,BOOST_ARCH_X86_64_NAME)