Home
last modified time | relevance | path

Searched refs:exchange (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/external/libcxx/test/std/utilities/utility/exchange/
Dexchange.pass.cpp29 if (12 != std::exchange(v,23) || v != 23) in test_constexpr()
32 if (23 != std::exchange(v,static_cast<short>(67)) || v != 67) in test_constexpr()
35 if (67 != std::exchange<int, short>(v, {}) || v != 0) in test_constexpr()
47 assert ( std::exchange ( v, 23 ) == 12 ); in main()
49 assert ( std::exchange ( v, static_cast<short>(67) ) == 23 ); in main()
52 assert ((std::exchange<int, short> ( v, {} )) == 67 ); in main()
59 assert ( !std::exchange ( b, true )); in main()
67 assert ( std::exchange ( s3, s2 ) == s1 ); in main()
69 assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); in main()
73 assert ( std::exchange ( s3, {} ) == s2 ); in main()
[all …]
/external/deqp/framework/delibs/dethread/
DdeAtomic.h100 …t32 deAtomicCompareExchangeUint32 (volatile deUint32* dstAddr, deUint32 compare, deUint32 exchange) in deAtomicCompareExchangeUint32() argument
103 return _InterlockedCompareExchange((volatile long*)dstAddr, exchange, compare); in deAtomicCompareExchangeUint32()
105 return __sync_val_compare_and_swap(dstAddr, compare, exchange); in deAtomicCompareExchangeUint32()
184 …t64 deAtomicCompareExchangeUint64 (volatile deUint64* dstAddr, deUint64 compare, deUint64 exchange) in deAtomicCompareExchangeUint64() argument
187 return _InterlockedCompareExchange64((volatile long long*)dstAddr, exchange, compare); in deAtomicCompareExchangeUint64()
189 return __sync_val_compare_and_swap(dstAddr, compare, exchange); in deAtomicCompareExchangeUint64()
243 DE_INLINE void* deAtomicCompareExchangePtr (void* volatile* dstAddr, void* compare, void* exchange) in deAtomicCompareExchangePtr() argument
246 …)deAtomicCompareExchangeUint64((volatile deUint64*)dstAddr, (deUint64)compare, (deUint64)exchange); in deAtomicCompareExchangePtr()
248 …)deAtomicCompareExchangeUint32((volatile deUint32*)dstAddr, (deUint32)compare, (deUint32)exchange); in deAtomicCompareExchangePtr()
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp79 assert(obj.exchange(false) == true); in main()
81 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
134 assert(obj.exchange(false) == true); in main()
136 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
189 assert(obj.exchange(false) == true); in main()
191 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
Daddress.pass.cpp99 assert(obj.exchange(T(2)) == T(1)); in do_test()
101 assert(obj.exchange(T(3), std::memory_order_relaxed) == T(2)); in do_test()
/external/skia/include/private/
DSkSpinlock.h20 if (fLocked.exchange(true, std::memory_order_acquire)) { in acquire()
29 if (fLocked.exchange(true, std::memory_order_acquire)) { in tryAcquire()
/external/skqp/include/private/
DSkSpinlock.h20 if (fLocked.exchange(true, std::memory_order_acquire)) { in acquire()
29 if (fLocked.exchange(true, std::memory_order_acquire)) { in tryAcquire()
/external/scapy/scapy/layers/tls/
Dkeyexchange_tls13.py189 pms = privkey.exchange(pubkey)
192 pms = privkey.exchange(pubkey)
194 pms = privkey.exchange(ec.ECDH(), pubkey)
212 pms = privkey.exchange(pubkey)
215 pms = privkey.exchange(pubkey)
217 pms = privkey.exchange(ec.ECDH(), pubkey)
/external/pdfium/third_party/base/allocator/partition_allocator/
Dspin_lock.cc72 LIKELY(!lock_.exchange(true, std::memory_order_acquire))) in LockSlow()
79 } while (UNLIKELY(lock_.exchange(true, std::memory_order_acquire))); in LockSlow()
/external/swiftshader/third_party/LLVM/test/CodeGen/PowerPC/
Datomic-1.ll20 define i32 @exchange(i32* %mem, i32 %val) nounwind {
21 ; CHECK: exchange:
Datomic-2.ll20 define i64 @exchange(i64* %mem, i64 %val) nounwind {
21 ; CHECK: exchange:
/external/llvm/test/CodeGen/SystemZ/
Datomicrmw-xchg-01.ll1 ; Test 8-bit atomic exchange.
6 ; Check exchange with a variable.
43 ; Check exchange with a constant. We should force the constant into
Datomicrmw-xchg-02.ll1 ; Test 16-bit atomic exchange.
6 ; Check exchange with a variable.
43 ; Check exchange with a constant. We should force the constant into
Datomicrmw-xchg-04.ll1 ; Test 64-bit atomic exchange.
5 ; Check register exchange.
76 ; Check exchange of a constant. We should force it into a register and
Datomicrmw-xchg-03.ll1 ; Test 32-bit atomic exchange.
5 ; Check register exchange.
109 ; Check exchange of a constant. We should force it into a register and
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Datomicrmw-xchg-01.ll1 ; Test 8-bit atomic exchange.
6 ; Check exchange with a variable.
43 ; Check exchange with a constant. We should force the constant into
Datomicrmw-xchg-02.ll1 ; Test 16-bit atomic exchange.
6 ; Check exchange with a variable.
43 ; Check exchange with a constant. We should force the constant into
Datomicrmw-xchg-04.ll1 ; Test 64-bit atomic exchange.
5 ; Check register exchange.
76 ; Check exchange of a constant. We should force it into a register and
Datomicrmw-xchg-03.ll1 ; Test 32-bit atomic exchange.
5 ; Check register exchange.
109 ; Check exchange of a constant. We should force it into a register and
/external/llvm/test/CodeGen/PowerPC/
Datomic-1.ll21 define i32 @exchange(i32* %mem, i32 %val) nounwind {
22 ; CHECK-LABEL: exchange:
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Datomic-1.ll21 define i32 @exchange(i32* %mem, i32 %val) nounwind {
22 ; CHECK-LABEL: exchange:
/external/icu/icu4c/source/i18n/
Dnumrange_fluent.cpp232 auto* stolen = _src.fAtomicFormatter.exchange(nullptr); in LocalizedNumberRangeFormatter()
233 delete fAtomicFormatter.exchange(stolen); in LocalizedNumberRangeFormatter()
239 delete fAtomicFormatter.exchange(nullptr); in operator =()
246 auto* stolen = src.fAtomicFormatter.exchange(nullptr); in operator =()
247 delete fAtomicFormatter.exchange(stolen); in operator =()
253 delete fAtomicFormatter.exchange(nullptr); in ~LocalizedNumberRangeFormatter()
/external/pdfium/
Dupdate_pdfium.py105 def exchange(currentDir, newDir, oldDir): function
127 exchange(targetDir, newDir, oldDir)
/external/openssh/regress/misc/kexfuzz/
DREADME19 Then re-run the key exchange substituting the modified packet in
26 directions for each key exchange type and every hostkey type.
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/
DSignals.inc105 if (FileToRemoveList *N = Next.exchange(nullptr))
107 if (char *F = Filename.exchange(nullptr))
138 OldFilename = Current->Filename.exchange(nullptr);
153 FileToRemoveList *OldHead = Head.exchange(nullptr);
159 if (char *path = currentFile->Filename.exchange(nullptr)) {
177 currentFile->Filename.exchange(path);
182 Head.exchange(OldHead);
193 FileToRemoveList *Head = FilesToRemove.exchange(nullptr);
334 if (auto OldInterruptFunction = InterruptFunction.exchange(nullptr))
360 InterruptFunction.exchange(IF);
/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool_test.cc175 ASSERT_FALSE(threads_running[id].exchange(true)); in TEST()
177 ASSERT_FALSE(work[i].exchange(true)); in TEST()
179 ASSERT_TRUE(threads_running[id].exchange(false)); in TEST()

12345678910>>...17