Home
last modified time | relevance | path

Searched refs:__expected (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/src/
H A Dbarrier.cpp27 _LIBCPP_HIDDEN __barrier_algorithm_base(ptrdiff_t& __expected) : __expected_(__expected) { in __barrier_algorithm_base() argument
28 size_t const __count = (__expected + 1) >> 1; in __barrier_algorithm_base()
62 …RTED_FROM_ABI __barrier_algorithm_base* __construct_barrier_algorithm_base(ptrdiff_t& __expected) { in __construct_barrier_algorithm_base() argument
63 return new __barrier_algorithm_base(__expected); in __construct_barrier_algorithm_base()
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dthree_way_comp_ref_type.h49 _Order __expected = __o; in __do_compare_assert() local
51 __expected = _Order::greater; in __do_compare_assert()
53 __expected = _Order::less; in __do_compare_assert()
55 __comp_(__l, __r) == __expected, "Comparator does not induce a strict weak ordering"); in __do_compare_assert()
/freebsd/contrib/llvm-project/libcxx/src/include/
H A Datomic_support.h76 _ValueType* __expected,
80 return __atomic_compare_exchange_n(__val, __expected, __after, true, __success_order, __fail_order);
117 __libcpp_atomic_compare_exchange(_ValueType* __val, _ValueType* __expected, _ValueType __after, int = 0, int = 0) {
118 if (*__val == *__expected) {
122 *__expected = *__val;
/freebsd/contrib/llvm-project/libcxx/include/__atomic/
H A Datomic_ref.h70 …_Tp* __ptr, _Tp* __expected, _Tp* __desired, bool __is_weak, int __success, int __failure) noexcep… in __compare_exchange()
78 … return __atomic_compare_exchange(__ptr, __expected, __desired, __is_weak, __success, __failure); in __compare_exchange()
81 _Tp __copy = *__expected; in __compare_exchange()
97 std::memcpy(__expected, std::addressof(__copy), sizeof(_Tp)); in __compare_exchange()
159 …compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __failu…
167 std::addressof(__expected),
174 …compare_exchange_strong(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __fai…
182 std::addressof(__expected),
190 …compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __order = memory_order::seq_cst…
193 std::addressof(__expected),
[all …]
H A Dcxx_atomic_impl.h133 _Tp* __expected, in __cxx_atomic_compare_exchange_strong() argument
139 __expected, in __cxx_atomic_compare_exchange_strong()
148 …__cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, memory_order __success, memory_ord… in __cxx_atomic_compare_exchange_strong() argument
151 __expected, in __cxx_atomic_compare_exchange_strong()
161 _Tp* __expected, in __cxx_atomic_compare_exchange_weak() argument
167 __expected, in __cxx_atomic_compare_exchange_weak()
176 …__cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, memory_order __success, memory_ord… in __cxx_atomic_compare_exchange_weak() argument
179 __expected, in __cxx_atomic_compare_exchange_weak()
359 _Tp* __expected,
365 __expected,
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dexpected44 # include <__expected/bad_expected_access.h>
45 # include <__expected/expected.h>
46 # include <__expected/unexpect.h>
47 # include <__expected/unexpected.h>
H A Dbarrier100 __construct_barrier_algorithm_base(ptrdiff_t& __expected);
122 __barrier_base(ptrdiff_t __expected, _CompletionF __completion = _CompletionF())
123 : __expected_(__expected),
170 __atomic_base<ptrdiff_t> __expected;
180 …_LIBCPP_HIDE_FROM_ABI __barrier_base(ptrdiff_t __expected, _CompletionF __completion = _Completion…
181 …: __expected(__expected), __arrived(__expected), __completion(std::move(__completion)), __phase(fa…
185 auto const new_expected = __expected.load(memory_order_relaxed);
202 __expected.fetch_sub(1, memory_order_relaxed);
H A Dlatch24 constexpr explicit latch(ptrdiff_t __expected);
72 inline _LIBCPP_HIDE_FROM_ABI constexpr explicit latch(ptrdiff_t __expected) : __a_(__expected) {
74 __expected >= 0,
78 __expected <= max(),
H A Dmodule.modulemap1247 module std_private_expected_bad_expected_access [system] { header "__expected/bad_expected_access.h…
1248 module std_private_expected_expected [system] { header "__expected/expected.h" }
1249 module std_private_expected_unexpect [system] { header "__expected/unexpect.h" }
1250 module std_private_expected_unexpected [system] { header "__expected/unexpected.h" }
/freebsd/contrib/llvm-project/libcxx/src/experimental/
H A Dtzdb.cpp96 static void __matches(istream& __input, char __expected) { in __matches() argument
97 if (std::tolower(__input.get()) != __expected) in __matches()
98 …std::__throw_runtime_error((string("corrupt tzdb: expected character '") + __expected + '\'').c_st… in __matches()
101 static void __matches(istream& __input, string_view __expected) { in __matches() argument
102 for (auto __c : __expected) in __matches()
104 …std::__throw_runtime_error((string("corrupt tzdb: expected string '") + string(__expected) + '\'')… in __matches()
/freebsd/etc/mtree/
H A DBSD.include.dist43 __expected
/freebsd/lib/libc++/
H A Dlibcxx.imp332 { include: [ "<__expected/bad_expected_access.h>", "private", "<expected>", "public" ] },
333 { include: [ "<__expected/expected.h>", "private", "<expected>", "public" ] },
334 { include: [ "<__expected/unexpect.h>", "private", "<expected>", "public" ] },
335 { include: [ "<__expected/unexpected.h>", "private", "<expected>", "public" ] },
H A DMakefile680 EXDDIR= ${CXXINCLUDEDIR}/__expected
686 EXD+= ${HDRDIR}/__expected/${hdr}