]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/context/example/echosse.cpp
2 // Copyright Oliver Kowalke 2009.
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)
11 #include <emmintrin.h>
13 #include <boost/context/continuation.hpp>
15 namespace ctx
= boost::context
;
17 void echoSSE( int i
) {
19 xmm
= _mm_set_epi32( i
, i
+ 1, i
+ 2, i
+ 3);
21 memcpy( & v32
, & xmm
, 16);
29 int main( int argc
, char * argv
[]) {
31 ctx::continuation c
= ctx::callcc(
32 [&i
](ctx::continuation
&& c
) {
44 std::cout
<< "\nmain: done" << std::endl
;