/barrelfish-master/usr/tests/cxx/ |
H A D | stl_algorithms.cpp | 16 using namespace std;
|
H A D | stl_inheritance.cpp | 16 using namespace std;
|
H A D | stl_templates.cpp | 16 using namespace std;
|
H A D | stl_threads.cpp | 17 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 D | test.cpp | 17 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 D | stl_map.cpp | 17 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 D | cxx11.cpp | 16 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 D | test_inc_barrelfish.cpp | 23 std::cout << "Hello World!" << std::endl; 25 std::cout << "Tests done: SUCCESS" << std::endl;
|
H A D | stl_chrono.cpp | 19 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 D | variant.cpp | 11 namespace std { namespace 17 } // namespace std
|
H A D | optional.cpp | 11 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 D | new.cpp | 29 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 D | cxa_aux_runtime.cpp | 20 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 D | cxa_noexception.cpp | 17 #include <exception> // for std::terminate 28 std::terminate(); 34 std::terminate(); 43 std::terminate();
|
H A D | stdlib_new_delete.cpp | 26 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 D | cxa_new_delete.cpp | 36 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 D | cxa_default_handlers.cpp | 55 // 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 D | eg_cc_event.cc | 53 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 D | eg_cc_yield.cc | 66 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 D | eg_cc_basic.cc | 57 std::cout << "eclipse returned: " << buf << ".\n"; 61 std::cout << "eclipse error returned: " << buf << ".\n";
|
/barrelfish-master/usr/tests/xomptest/ |
H A D | main.cpp | 25 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 D | usb_ehci_queue.c | 110 * \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 D | usb_ehci_queue.h | 20 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 D | math.h | 330 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 D | Makefile | 2 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
|