Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 1142) sorted by relevance

12345678910>>...46

/external/clang/www/
Dlibstdc++4.4-clang0x.patch16 - swap(forward_list&& __list)
17 + swap(forward_list& __list)
18 { _Node_base::swap(this->_M_impl._M_head, __list._M_impl._M_head); }
68 - swap(__shared_ptr<_Tp, _Lp>&& __other) // never throws
69 + swap(__shared_ptr<_Tp, _Lp>& __other) // never throws
71 std::swap(_M_ptr, __other._M_ptr);
74 swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b)
75 { __a.swap(__b); }
79 - swap(__shared_ptr<_Tp, _Lp>&& __a, __shared_ptr<_Tp, _Lp>& __b)
80 - { __a.swap(__b); }
[all …]
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.swap/
Dswap.pass.cpp49 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
62 friend void swap(Z& x, Z& y) {throw 6;} in swap() function
74 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
77 opt1.swap(opt2); in main()
84 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
88 opt1.swap(opt2); in main()
96 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
100 opt1.swap(opt2); in main()
108 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
113 opt1.swap(opt2); in main()
[all …]
/external/libcxx/test/std/experimental/optional/optional.specalg/
Dswap.pass.cpp48 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
61 friend void swap(Z& x, Z& y) {throw 6;} in swap() function
73 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
76 swap(opt1, opt2); in main()
83 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
87 swap(opt1, opt2); in main()
95 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
99 swap(opt1, opt2); in main()
107 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
112 swap(opt1, opt2); in main()
[all …]
/external/clang/test/SemaCXX/
Dlibstdcxx_pair_swap_hack.cpp25 template<typename T> void swap(T &, T &);
26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { in do_swap()
27 swap(a, b); in do_swap()
32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member)));
36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member)));
55 void swap(X &, X &) noexcept;
59 static_assert(noexcept(px.swap(px)), "");
60 static_assert(!noexcept(pi.swap(pi)), "");
63 template<typename T> void swap(T &, T &);
66 …void swap(CLASS &other) noexcept(noexcept(swap(*this, other))); // expected-error {{too many argum…
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_noexcept.pass.cpp54 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
75 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
122 static_assert(noexcept(swap(c1, c2)), ""); in main()
128 static_assert(noexcept(swap(c1, c2)), ""); in main()
134 static_assert(noexcept(swap(c1, c2)), ""); in main()
139 static_assert(!noexcept(swap(c1, c2)), ""); in main()
145 static_assert(!noexcept(swap(c1, c2)), ""); in main()
152 static_assert(!noexcept(swap(c1, c2)), ""); in main()
157 static_assert(!noexcept(swap(c1, c2)), ""); in main()
162 static_assert(!noexcept(swap(c1, c2)), ""); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_noexcept.pass.cpp54 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
75 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
122 static_assert(noexcept(swap(c1, c2)), ""); in main()
128 static_assert(noexcept(swap(c1, c2)), ""); in main()
134 static_assert(noexcept(swap(c1, c2)), ""); in main()
139 static_assert(!noexcept(swap(c1, c2)), ""); in main()
145 static_assert(!noexcept(swap(c1, c2)), ""); in main()
152 static_assert(!noexcept(swap(c1, c2)), ""); in main()
157 static_assert(!noexcept(swap(c1, c2)), ""); in main()
162 static_assert(!noexcept(swap(c1, c2)), ""); in main()
[all …]
/external/llvm/include/llvm/IR/
DPassManagerInternal.h90 friend void swap(PassModel &LHS, PassModel &RHS) {
91 using std::swap;
92 swap(LHS.Pass, RHS.Pass);
95 swap(*this, RHS);
116 friend void swap(PassModel &LHS, PassModel &RHS) {
117 using std::swap;
118 swap(LHS.Pass, RHS.Pass);
121 swap(*this, RHS);
194 friend void swap(AnalysisResultModel &LHS, AnalysisResultModel &RHS) {
195 using std::swap;
[all …]
/external/eigen/test/eigen2/
Deigen2_swap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) in swap() function
44 m1.swap(m2); in swap()
51 m1.swap(m3); in swap()
58 m1.swap(m2.block(0,0,rows,cols)); in swap()
65 m1.transpose().swap(m3.transpose()); in swap()
72 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0))); in swap()
74 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1)); in swap()
79 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization in test_eigen2_swap()
80 CALL_SUBTEST_1( swap(Matrix4d()) ); // fixed size, possible vectorization in test_eigen2_swap()
81 CALL_SUBTEST_1( swap(MatrixXd(3,3)) ); // dyn size, no vectorization in test_eigen2_swap()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_noexcept.pass.cpp54 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
75 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
123 static_assert(noexcept(swap(c1, c2)), ""); in main()
129 static_assert(noexcept(swap(c1, c2)), ""); in main()
135 static_assert(noexcept(swap(c1, c2)), ""); in main()
140 static_assert(!noexcept(swap(c1, c2)), ""); in main()
146 static_assert(!noexcept(swap(c1, c2)), ""); in main()
153 static_assert(!noexcept(swap(c1, c2)), ""); in main()
158 static_assert(!noexcept(swap(c1, c2)), ""); in main()
163 static_assert(!noexcept(swap(c1, c2)), ""); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_noexcept.pass.cpp54 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
75 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
124 static_assert(noexcept(swap(c1, c2)), ""); in main()
130 static_assert(noexcept(swap(c1, c2)), ""); in main()
136 static_assert(noexcept(swap(c1, c2)), ""); in main()
141 static_assert(!noexcept(swap(c1, c2)), ""); in main()
147 static_assert(!noexcept(swap(c1, c2)), ""); in main()
154 static_assert(!noexcept(swap(c1, c2)), ""); in main()
159 static_assert(!noexcept(swap(c1, c2)), ""); in main()
164 static_assert(!noexcept(swap(c1, c2)), ""); in main()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dcmpxchg-03.ll1 ; Test 32-bit compare and swap.
6 define i32 @f1(i32 %cmp, i32 %swap, i32 *%src) {
10 %pair = cmpxchg i32 *%src, i32 %cmp, i32 %swap seq_cst seq_cst
16 define i32 @f2(i32 %cmp, i32 %swap, i32 *%src) {
21 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
27 define i32 @f3(i32 %cmp, i32 %swap, i32 *%src) {
32 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
38 define i32 @f4(i32 %cmp, i32 %swap, i32 *%src) {
43 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
50 define i32 @f5(i32 %cmp, i32 %swap, i32 *%src) {
[all …]
Dcmpxchg-04.ll1 ; Test 64-bit compare and swap.
6 define i64 @f1(i64 %cmp, i64 %swap, i64 *%src) {
10 %pairval = cmpxchg i64 *%src, i64 %cmp, i64 %swap seq_cst seq_cst
16 define i64 @f2(i64 %cmp, i64 %swap, i64 *%src) {
21 %pairval = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst seq_cst
28 define i64 @f3(i64 %cmp, i64 %swap, i64 *%src) {
34 %pairval = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst seq_cst
40 define i64 @f4(i64 %cmp, i64 %swap, i64 *%src) {
45 %pairval = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst seq_cst
51 define i64 @f5(i64 %cmp, i64 %swap, i64 *%src) {
[all …]
/external/eigen/test/
Dswap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) in swap() function
44 m1.swap(m2); in swap()
51 m1.swap(m3); in swap()
58 m1.swap(m2.block(0,0,rows,cols)); in swap()
65 m1.transpose().swap(m3.transpose()); in swap()
72 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0))); in swap()
74 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1)); in swap()
79 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization in test_swap()
80 CALL_SUBTEST_2( swap(Matrix4d()) ); // fixed size, possible vectorization in test_swap()
81 CALL_SUBTEST_3( swap(MatrixXd(3,3)) ); // dyn size, no vectorization in test_swap()
[all …]
/external/boringssl/src/crypto/perlasm/
Dcbc.pl28 local($name,$enc_func,$dec_func,$swap,$iv_off,$enc_off,$p1,$p2,$p3)=@_;
119 &bswap("eax") if $swap;
120 &bswap("ebx") if $swap;
130 &bswap("eax") if $swap;
131 &bswap("ebx") if $swap;
182 &bswap("eax") if $swap;
183 &bswap("ebx") if $swap;
193 &bswap("eax") if $swap;
194 &bswap("ebx") if $swap;
215 &bswap("eax") if $swap;
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dshared_ptr.h142 swap(me);
151 swap(me);
190 tmp.swap(*this);
201 void swap(shared_ptr<T>& r) {
202 using std::swap; // http://go/using-std-swap
203 swap(ptr_, r.ptr_);
204 swap(control_block_, r.control_block_);
278 template <typename T> void swap(shared_ptr<T>& r, shared_ptr<T>& s) {
279 r.swap(s);
338 tmp.swap(*this);
[all …]
/external/mockito/cglib-and-asm/src/org/mockito/cglib/util/
DSorterTemplate.java24 abstract protected void swap(int i, int j); in swap() method in SorterTemplate
40 swap(lo, i); in quickSortHelper()
43 swap(lo, hi); in quickSortHelper()
46 swap(i, hi); in quickSortHelper()
49 swap(i, j); in quickSortHelper()
62 swap(i, j); in quickSortHelper()
64 swap(i, hi - 1); in quickSortHelper()
79 swap(j - 1, j); in insertionSort()
105 swap(pivot, lo); in merge()
132 swap(lot++, hit--); in rotate()
[all …]
/external/mesa3d/docs/
DMESA_swap_frame_usage.spec36 swap period has elapsed since the last swap operation completed. The
44 where td is the time measured from the last completed buffer swap (or
45 call to enable the statistic) to when the next buffer swap completes, tf
47 depending on the swap interval as set by the GLX_SGI_swap_control or
52 buffer swap occurred within the time period required to maintain a
59 is taken from the completion of one swap to the issuance of the next.
62 issuance of a swap and the swap actually occurring.
64 There is also a mechanism to determine whether a frame swap was
112 The frame usage is measured as the percentage of the swap period elapsed
113 between two buffer-swap operations being committed. In unextended GLX the
[all …]
/external/opencv3/modules/core/include/opencv2/core/
Dcuda.inl.hpp127 swap(temp); in operator =()
140 void GpuMat::swap(GpuMat& b) in swap() function in cv::cuda::GpuMat
142 std::swap(flags, b.flags); in swap()
143 std::swap(rows, b.rows); in swap()
144 std::swap(cols, b.cols); in swap()
145 std::swap(step, b.step); in swap()
146 std::swap(data, b.data); in swap()
147 std::swap(datastart, b.datastart); in swap()
148 std::swap(dataend, b.dataend); in swap()
149 std::swap(refcount, b.refcount); in swap()
[all …]
/external/libcxx/test/std/containers/associative/multiset/multiset.special/
Dswap_noexcept.pass.cpp53 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
100 static_assert(noexcept(swap(c1, c2)), ""); in main()
105 static_assert(noexcept(swap(c1, c2)), ""); in main()
110 static_assert(noexcept(swap(c1, c2)), ""); in main()
115 static_assert(!noexcept(swap(c1, c2)), ""); in main()
122 static_assert(!noexcept(swap(c1, c2)), ""); in main()
127 static_assert(!noexcept(swap(c1, c2)), ""); in main()
132 static_assert( noexcept(swap(c1, c2)), ""); in main()
137 static_assert( noexcept(swap(c1, c2)), ""); in main()
143 static_assert( noexcept(swap(c1, c2)), ""); in main()
/external/libcxx/test/std/containers/associative/set/set.special/
Dswap_noexcept.pass.cpp53 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
100 static_assert(noexcept(swap(c1, c2)), ""); in main()
105 static_assert(noexcept(swap(c1, c2)), ""); in main()
110 static_assert(noexcept(swap(c1, c2)), ""); in main()
115 static_assert(!noexcept(swap(c1, c2)), ""); in main()
122 static_assert(!noexcept(swap(c1, c2)), ""); in main()
127 static_assert(!noexcept(swap(c1, c2)), ""); in main()
132 static_assert( noexcept(swap(c1, c2)), ""); in main()
137 static_assert( noexcept(swap(c1, c2)), ""); in main()
143 static_assert( noexcept(swap(c1, c2)), ""); in main()
/external/libcxx/test/std/containers/associative/multimap/multimap.special/
Dswap_noexcept.pass.cpp53 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
100 static_assert(noexcept(swap(c1, c2)), ""); in main()
105 static_assert(noexcept(swap(c1, c2)), ""); in main()
110 static_assert(noexcept(swap(c1, c2)), ""); in main()
115 static_assert(!noexcept(swap(c1, c2)), ""); in main()
122 static_assert(!noexcept(swap(c1, c2)), ""); in main()
127 static_assert(!noexcept(swap(c1, c2)), ""); in main()
132 static_assert( noexcept(swap(c1, c2)), ""); in main()
137 static_assert( noexcept(swap(c1, c2)), ""); in main()
143 static_assert( noexcept(swap(c1, c2)), ""); in main()
/external/libcxx/test/std/containers/associative/map/map.special/
Dswap_noexcept.pass.cpp53 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
100 static_assert(noexcept(swap(c1, c2)), ""); in main()
105 static_assert(noexcept(swap(c1, c2)), ""); in main()
110 static_assert(noexcept(swap(c1, c2)), ""); in main()
115 static_assert(!noexcept(swap(c1, c2)), ""); in main()
122 static_assert(!noexcept(swap(c1, c2)), ""); in main()
127 static_assert(!noexcept(swap(c1, c2)), ""); in main()
132 static_assert( noexcept(swap(c1, c2)), ""); in main()
137 static_assert( noexcept(swap(c1, c2)), ""); in main()
143 static_assert( noexcept(swap(c1, c2)), ""); in main()
/external/eigen/Eigen/src/Core/
DDenseStorage.h129 inline void swap(DenseStorage& other) { std::swap(m_data,other.m_data); }
145 inline void swap(DenseStorage& ) {}
175 inline void swap(DenseStorage& other)
176 …{ std::swap(m_data,other.m_data); std::swap(m_rows,other.m_rows); std::swap(m_cols,other.m_cols); }
195 …inline void swap(DenseStorage& other) { std::swap(m_data,other.m_data); std::swap(m_rows,other.m_r…
214 …inline void swap(DenseStorage& other) { std::swap(m_data,other.m_data); std::swap(m_cols,other.m_c…
237 inline void swap(DenseStorage& other)
238 …{ std::swap(m_data,other.m_data); std::swap(m_rows,other.m_rows); std::swap(m_cols,other.m_cols); }
276 …inline void swap(DenseStorage& other) { std::swap(m_data,other.m_data); std::swap(m_cols,other.m_c…
312 …inline void swap(DenseStorage& other) { std::swap(m_data,other.m_data); std::swap(m_rows,other.m_r…
/external/clang/test/Analysis/
Dunions-region.m22 union u_testA swap;
23 swap.f = f;
25 if (testA_aux(swap.i)) // no-warning
26 swap.i = ((swap.i & 0xffff0000) >> 16) | ((swap.i & 0x0000fffff) << 16);
28 testA_aux_2(swap); // no-warning
30 return swap.f;
/external/libcxx/test/std/containers/sequences/vector.bool/
Dswap.pass.cpp25 v1.swap(v2); in main()
35 swap(v1, v2); in main()
47 swap(v1, v2); in main()
60 using std::swap; in main()
61 swap(r1, r2); in main()
69 v1.swap(v2); in main()
79 swap(v1, v2); in main()
92 using std::swap; in main()
93 swap(r1, r2); in main()

12345678910>>...46