Searched refs:std (Results 1 - 25 of 99) sorted by relevance

1234

/barrelfish-master/usr/tests/cxx/
H A Dstl_algorithms.cpp16 using namespace std;
H A Dstl_inheritance.cpp16 using namespace std;
H A Dstl_templates.cpp16 using namespace std;
H A Dstl_threads.cpp17 static std::mutex tmx;
21 std::lock_guard<std::mutex> l(tmx);
22 std::cout << "thread " << v << std::endl;
29 std::vector<std::thread> threads;
31 std::cout << "emplacing thread " << i << std::endl;
33 std
[all...]
H A Dtest.cpp17 std::cout << "Hello World!" << std::endl;
18 std::cout << "This is cxx test" << std::endl;
28 std::cout << "Tests done: SUCCESS" << std::endl;
H A Dstl_map.cpp17 static std::vector<std::string> mapkeys {{"0", "1", "2"}};
19 static std::unordered_map<std::string, uint32_t> simple_map
22 std::unordered_map<std::string, uint16_t> subscription_cost_to_id
27 std::cout << "STL unordered map: simple test" << std::endl;
29 std::cout << *it << "->" << simple_map[*it] << std
[all...]
H A Dcxx11.cpp16 using namespace std;
22 std::vector<int> v;
27 std::for_each(std::begin(v), std::end(v), [](int n) {std::cout << n << std::endl;});
30 auto pos = std::find_if(std::begin(v), std
[all...]
H A Dtest_inc_barrelfish.cpp23 std::cout << "Hello World!" << std::endl;
25 std::cout << "Tests done: SUCCESS" << std::endl;
H A Dstl_chrono.cpp19 using namespace std::chrono;
24 if (duration_cast<std::chrono::duration<double>>
30 long diff = duration_cast<std::chrono::duration
34 diff = duration_cast<std::chrono::duration
36 std::cout << (int) (100.0 * diff / d)
37 << "% completed." << std::endl;
40 std::this_thread::sleep_for(std::chrono::milliseconds(500));
46 auto s = std::chrono::steady_clock::now();
47 std
[all...]
/barrelfish-master/lib/cxx/cxx/
H A Dvariant.cpp11 namespace std { namespace
17 } // namespace std
H A Doptional.cpp11 namespace std namespace
20 } // std
25 // Preserve std::experimental::bad_optional_access for ABI compatibility
30 : public std::logic_error
33 bad_optional_access() : std::logic_error("Bad optional Access") {}
H A Dnew.cpp29 namespace std namespace
50 } // std
62 operator new(std::size_t size) _THROW_BAD_ALLOC
71 std::new_handler nh = std::get_new_handler();
76 throw std::bad_alloc();
86 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
112 operator new[](size_t size, const std::nothrow_t&) _NOEXCEPT
138 operator delete(void* ptr, const std::nothrow_t&) _NOEXCEPT
159 operator delete[] (void* ptr, const std
[all...]
/barrelfish-master/lib/cxx/cxxabi/
H A Dcxa_aux_runtime.cpp20 throw std::bad_cast();
22 std::terminate();
28 throw std::bad_typeid();
30 std::terminate();
37 throw std::bad_array_new_length();
39 std::terminate();
H A Dcxa_noexception.cpp17 #include <exception> // for std::terminate
28 std::terminate();
34 std::terminate();
43 std::terminate();
H A Dstdlib_new_delete.cpp26 operator new(std::size_t size) _THROW_BAD_ALLOC
35 std::new_handler nh = std::get_new_handler();
40 throw std::bad_alloc();
50 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
76 operator new[](size_t size, const std::nothrow_t&) _NOEXCEPT
103 operator delete(void* ptr, const std::nothrow_t&) _NOEXCEPT
124 operator delete[] (void* ptr, const std::nothrow_t&) _NOEXCEPT
140 operator new(std::size_t size, std
[all...]
H A Dcxa_new_delete.cpp36 operator new(std::size_t size)
38 throw(std::bad_alloc)
44 while ((p = std::malloc(size)) == 0)
46 std::new_handler nh = std::get_new_handler();
50 throw std::bad_alloc();
59 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2158.html
69 operator new(size_t size, const std::nothrow_t&)
96 throw(std::bad_alloc)
110 operator new[](size_t size, const std
198 namespace std namespace
[all...]
H A Dcxa_default_handlers.cpp55 // If the uncaught exception can be caught with std::exception&
57 static_cast<const __shim_type_info*>(&typeid(std::exception));
61 const std::exception* e = static_cast<const std::exception*>(thrown_object);
84 std::terminate();
87 static std::terminate_handler default_terminate_handler = demangling_terminate_handler;
88 static std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
90 static std::terminate_handler default_terminate_handler = std::abort;
91 static std
103 namespace std namespace
[all...]
/barrelfish-master/usr/eclipseclp/Kernel/src/
H A Deg_cc_event.cc53 case EC_succeed: std::cout << "Succeeded\n"; break;
54 case EC_fail: std::cout << "Failed\n"; break;
55 case EC_throw: std::cout << "Aborted\n"; break;
56 default: std::cout << "???\n"; break;
H A Deg_cc_yield.cc66 std::cout << "succeeded\n";
72 std::cout << "failed\n";
76 std::cout << "aborted\n";
82 std::cout << "yielded\n";
90 std::cout << "bad return code: " << res << "\n";
H A Deg_cc_basic.cc57 std::cout << "eclipse returned: " << buf << ".\n";
61 std::cout << "eclipse error returned: " << buf << ".\n";
/barrelfish-master/usr/tests/xomptest/
H A Dmain.cpp25 using namespace std;
51 std::cout << "XOMP Test started. (WORKER) #args:" << argc << std::endl;
54 std::cout << "could not initialize the worker: " << err_getstring(err) << std::endl;
58 std::cout << "XOMP Test started. (MASTER) #args:" << argc << std::endl;
61 std::cout << "could not start the master: " << err_getstring(err) << std::endl;
69 std
[all...]
/barrelfish-master/usr/drivers/usb/usb_manager/controller/ehci/
H A Dusb_ehci_queue.c110 * \param std the iTD to insert into the list
113 usb_ehci_itd_t *usb_ehci_enq_hs_td(usb_ehci_itd_t *std, usb_ehci_itd_t *last) argument
118 std->next = last->next;
119 std->prev = last;
120 last->next = std;
125 std->itd_next = last->itd_next;
126 last->itd_next = std->itd_self;
128 return (std);
135 * \param std the iTD to be removed
138 usb_ehci_itd_t *usb_ehci_deq_hs_td(usb_ehci_itd_t *std, usb_ehci_itd_ argument
[all...]
H A Dusb_ehci_queue.h20 usb_ehci_sitd_t *usb_ehci_enq_fs_td(usb_ehci_sitd_t *std, usb_ehci_sitd_t *last);
21 usb_ehci_sitd_t *usb_ehci_deq_fs_td(usb_ehci_sitd_t *std, usb_ehci_sitd_t *last);
23 usb_ehci_itd_t *usb_ehci_enq_hs_td(usb_ehci_itd_t *std, usb_ehci_itd_t *last);
24 usb_ehci_itd_t *usb_ehci_deq_hs_td(usb_ehci_itd_t *std, usb_ehci_itd_t *last);
/barrelfish-master/include/cxx/
H A Dmath.h330 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
333 return __libcpp_signbit((typename std::__promote<_A1>::type)__lcpp_x);
338 typename std::enable_if<
339 std::is_integral<_A1>::value && std::is_signed<_A1>::value, bool>::type
345 typename std::enable_if<
346 std::is_integral<_A1>::value && !std::is_signed<_A1>::value, bool>::type
354 typename std
[all...]
/barrelfish-master/usr/bench/cow/
H A DMakefile2 gcc -std=gnu11 -O3 main.c bench_rdtsc.c -lm -o cowbench
3 gcc -std=gnu11 -O3 pagecopy.c bench_rdtsc.c -lm -o pagecop macro

Completed in 171 milliseconds

1234