comparison DEPENDENCIES/generic/include/boost/context/fcontext.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
22 22
23 #ifdef BOOST_HAS_ABI_HEADERS 23 #ifdef BOOST_HAS_ABI_HEADERS
24 # include BOOST_ABI_PREFIX 24 # include BOOST_ABI_PREFIX
25 #endif 25 #endif
26 26
27 // x86_64
28 // test x86_64 before i386 because icc might
29 // define __i686__ for x86_64 too
30 #if defined(__x86_64__) || defined(__x86_64) \
31 || defined(__amd64__) || defined(__amd64) \
32 || defined(_M_X64) || defined(_M_AMD64)
33 # if defined(BOOST_WINDOWS)
34 # include <boost/context/detail/fcontext_x86_64_win.hpp>
35 # else
36 # include <boost/context/detail/fcontext_x86_64.hpp>
37 # endif
38 // i386
39 #elif defined(i386) || defined(__i386__) || defined(__i386) \
40 || defined(__i486__) || defined(__i586__) || defined(__i686__) \
41 || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
42 || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
43 || defined(_M_IX86) || defined(_I86_)
44 # if defined(BOOST_WINDOWS)
45 # include <boost/context/detail/fcontext_i386_win.hpp>
46 # else
47 # include <boost/context/detail/fcontext_i386.hpp>
48 # endif
49 // arm
50 #elif defined(__arm__) || defined(__thumb__) || defined(__TARGET_ARCH_ARM) \
51 || defined(__TARGET_ARCH_THUMB) || defined(_ARM) || defined(_M_ARM)
52 # include <boost/context/detail/fcontext_arm.hpp>
53 // mips
54 #elif (defined(__mips) && __mips == 1) || defined(_MIPS_ISA_MIPS1) \
55 || defined(_R3000)
56 # include <boost/context/detail/fcontext_mips.hpp>
57 // powerpc
58 #elif defined(__powerpc) || defined(__powerpc__) || defined(__ppc) \
59 || defined(__ppc__) || defined(_ARCH_PPC) || defined(__POWERPC__) \
60 || defined(__PPCGECKO__) || defined(__PPCBROADWAY) || defined(_XENON)
61 # include <boost/context/detail/fcontext_ppc.hpp>
62 #elif defined(__sparc__) || defined(__sparc)
63 // sparc or sparc64
64 # include <boost/context/detail/fcontext_sparc.hpp>
65 #else
66 # error "platform not supported"
67 #endif
68
69 namespace boost { 27 namespace boost {
70 namespace context { 28 namespace context {
71 29
30 typedef void* fcontext_t;
31
72 extern "C" BOOST_CONTEXT_DECL 32 extern "C" BOOST_CONTEXT_DECL
73 intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true); 33 intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t nfc,
34 intptr_t vp, bool preserve_fpu = false);
74 extern "C" BOOST_CONTEXT_DECL 35 extern "C" BOOST_CONTEXT_DECL
75 fcontext_t * BOOST_CONTEXT_CALLDECL make_fcontext( void * sp, std::size_t size, void (* fn)( intptr_t) ); 36 fcontext_t BOOST_CONTEXT_CALLDECL make_fcontext( void * sp, std::size_t size, void (* fn)( intptr_t) );
76 37
77 }} 38 }}
78 39
79 #ifdef BOOST_HAS_ABI_HEADERS 40 #ifdef BOOST_HAS_ABI_HEADERS
80 # include BOOST_ABI_SUFFIX 41 # include BOOST_ABI_SUFFIX