Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/context/detail/fcontext_ppc.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 |
Chris@16 | 2 // Copyright Oliver Kowalke 2009. |
Chris@16 | 3 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 4 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 5 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 6 |
Chris@16 | 7 #ifndef BOOST_CONTEXT_DETAIL_FCONTEXT_PPC_H |
Chris@16 | 8 #define BOOST_CONTEXT_DETAIL_FCONTEXT_PPC_H |
Chris@16 | 9 |
Chris@16 | 10 #include <cstddef> |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/config.hpp> |
Chris@16 | 13 #include <boost/cstdint.hpp> |
Chris@16 | 14 |
Chris@16 | 15 #include <boost/context/detail/config.hpp> |
Chris@16 | 16 |
Chris@16 | 17 #ifdef BOOST_HAS_ABI_HEADERS |
Chris@16 | 18 # include BOOST_ABI_PREFIX |
Chris@16 | 19 #endif |
Chris@16 | 20 |
Chris@16 | 21 namespace boost { |
Chris@16 | 22 namespace context { |
Chris@16 | 23 |
Chris@16 | 24 extern "C" { |
Chris@16 | 25 |
Chris@16 | 26 #define BOOST_CONTEXT_CALLDECL |
Chris@16 | 27 |
Chris@16 | 28 struct stack_t |
Chris@16 | 29 { |
Chris@16 | 30 void * sp; |
Chris@16 | 31 std::size_t size; |
Chris@16 | 32 |
Chris@16 | 33 stack_t() : |
Chris@16 | 34 sp( 0), size( 0) |
Chris@16 | 35 {} |
Chris@16 | 36 }; |
Chris@16 | 37 |
Chris@16 | 38 struct fp_t |
Chris@16 | 39 { |
Chris@16 | 40 boost::uint64_t fc_freg[19]; |
Chris@16 | 41 |
Chris@16 | 42 fp_t() : |
Chris@16 | 43 fc_freg() |
Chris@16 | 44 {} |
Chris@16 | 45 }; |
Chris@16 | 46 |
Chris@16 | 47 struct fcontext_t |
Chris@16 | 48 { |
Chris@16 | 49 # if defined(__powerpc64__) |
Chris@16 | 50 boost::uint64_t fc_greg[23]; |
Chris@16 | 51 # else |
Chris@16 | 52 boost::uint32_t fc_greg[23]; |
Chris@16 | 53 # endif |
Chris@16 | 54 stack_t fc_stack; |
Chris@16 | 55 fp_t fc_fp; |
Chris@16 | 56 |
Chris@16 | 57 fcontext_t() : |
Chris@16 | 58 fc_greg(), |
Chris@16 | 59 fc_stack(), |
Chris@16 | 60 fc_fp() |
Chris@16 | 61 {} |
Chris@16 | 62 }; |
Chris@16 | 63 |
Chris@16 | 64 } |
Chris@16 | 65 |
Chris@16 | 66 }} |
Chris@16 | 67 |
Chris@16 | 68 #ifdef BOOST_HAS_ABI_HEADERS |
Chris@16 | 69 # include BOOST_ABI_SUFFIX |
Chris@16 | 70 #endif |
Chris@16 | 71 |
Chris@16 | 72 #endif // BOOST_CONTEXT_DETAIL_FCONTEXT_PPC_H |