Home
last modified time | relevance | path

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

12345678910>>...23

/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/llvm-project/libcxx/test/std/utilities/utility/exchange/
Dexchange.pass.cpp28 if (12 != std::exchange(v,23) || v != 23) in test_constexpr()
31 if (23 != std::exchange(v,static_cast<short>(67)) || v != 67) in test_constexpr()
34 if (67 != std::exchange<int, short>(v, {}) || v != 0) in test_constexpr()
46 assert ( std::exchange ( v, 23 ) == 12 ); in main()
48 assert ( std::exchange ( v, static_cast<short>(67) ) == 23 ); in main()
51 assert ((std::exchange<int, short> ( v, {} )) == 67 ); in main()
58 assert ( !std::exchange ( b, true )); in main()
66 assert ( std::exchange ( s3, s2 ) == s1 ); in main()
68 assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); in main()
72 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/rust/crates/once_cell/src/
Drace.rs40 let exchange = in set() localVariable
42 match exchange { in set()
81 let exchange = in get_or_try_init() localVariable
83 if let Err(old) = exchange { in get_or_try_init()
214 let exchange = self.inner.compare_exchange( in set() localVariable
220 if let Err(_) = exchange { in set()
260 let exchange = self.inner.compare_exchange( in get_or_try_init() localVariable
266 if let Err(old) = exchange { in get_or_try_init()
/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool_test.cc56 ASSERT_FALSE(work[i].exchange(true)); in TEST()
86 EXPECT_FALSE(work[start].exchange(true)); // No duplicate in RunWithFixedBlockSize()
135 EXPECT_FALSE(work[start].exchange(true)); // No duplicate in RunWithFixedBlockSizeTransformRangeConcurrently()
233 EXPECT_FALSE(threads_running[id].exchange(true)); in RunFixedBlockSizeShardingWithWorkerId()
237 EXPECT_FALSE(work[start].exchange(true)); // No duplicate in RunFixedBlockSizeShardingWithWorkerId()
240 EXPECT_TRUE(threads_running[id].exchange(false)); in RunFixedBlockSizeShardingWithWorkerId()
278 ASSERT_FALSE(work[i].exchange(true)); in TEST()
308 ASSERT_FALSE(work[i].exchange(true)); in TEST()
339 ASSERT_FALSE(threads_running[id].exchange(true)); in TEST()
341 ASSERT_FALSE(work[i].exchange(true)); in TEST()
[all …]
/external/python/cryptography/vectors/cryptography_vectors/asymmetric/DH/
Dbad_exchange.txt1 # These are pairs of DH vectors that an exchange between them will result in an error.
3 # This pair of vector will result in ValueError as the exchange. That is because Y2 > P1.
13 # This pair of vector exchange will result in two different symmetric keys.
/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()
/external/llvm-project/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp78 assert(obj.exchange(false) == true); in main()
80 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
133 assert(obj.exchange(false) == true); in main()
135 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
188 assert(obj.exchange(false) == true); in main()
190 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Ddh.rst3 Diffie-Hellman key exchange
14 `Diffie-Hellman key exchange`_ (D–H) is a method that allows two parties
41 >>> # Generate a private key for use in the exchange.
47 >>> shared_key = server_private_key.exchange(peer_private_key.public_key())
58 >>> same_shared_key = peer_private_key.exchange(
70 DHE (or EDH), the ephemeral form of this exchange, is **strongly
73 each :meth:`~DHPrivateKey.exchange` when performing an DHE key exchange. An
85 >>> # Generate a private key for use in the exchange.
92 >>> shared_key = private_key.exchange(peer_public_key)
105 >>> shared_key_2 = private_key_2.exchange(peer_public_key_2)
[all …]
Dx25519.rst3 X25519 key exchange
9 X25519 is an elliptic curve `Diffie-Hellman key exchange`_ using `Curve25519`_.
28 >>> # Generate a private key for use in the exchange.
35 >>> shared_key = private_key.exchange(peer_public_key)
47 >>> shared_key_2 = private_key_2.exchange(peer_public_key_2)
96 .. method:: exchange(peer_public_key)
183 .. _`Diffie-Hellman key exchange`: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
Dx448.rst3 X448 key exchange
9 X448 is an elliptic curve `Diffie-Hellman key exchange`_ using `Curve448`_.
28 >>> # Generate a private key for use in the exchange.
35 >>> shared_key = private_key.exchange(peer_public_key)
47 >>> shared_key_2 = private_key_2.exchange(peer_public_key_2)
92 .. method:: exchange(peer_public_key)
178 .. _`Diffie-Hellman key exchange`: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
/external/webrtc/rtc_base/synchronization/
Dmutex.cc20 while (mutex_locked_.exchange(1)) { in Lock()
26 int old = mutex_locked_.exchange(0); in Unlock()
/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/python/cryptography/tests/wycheproof/
Dtest_ecdh.py78 computed_shared = private_key.exchange(ec.ECDH(), public_key)
83 private_key.exchange(ec.ECDH(), public_key)
112 computed_shared = private_key.exchange(ec.ECDH(), public_key)
Dtest_x25519.py40 private_key.exchange(public_key)
42 assert private_key.exchange(public_key) == expected
/external/skia/include/private/
DSkSpinlock.h21 if (fLocked.exchange(true, std::memory_order_acquire)) { in acquire()
30 if (fLocked.exchange(true, std::memory_order_acquire)) { in tryAcquire()
/external/openscreen/platform/base/
Dtrace_logging_activation.cc40 auto* const old_destination = g_current_destination.exchange(destination); in StartTracing()
46 auto* const old_destination = g_current_destination.exchange(nullptr); in StopTracing()
/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/icu/icu4c/source/i18n/
Dnumrange_fluent.cpp243 auto* stolen = _src.fAtomicFormatter.exchange(nullptr); in LocalizedNumberRangeFormatter()
244 delete fAtomicFormatter.exchange(stolen); in LocalizedNumberRangeFormatter()
251 delete fAtomicFormatter.exchange(nullptr); in operator =()
258 auto* stolen = src.fAtomicFormatter.exchange(nullptr); in operator =()
259 delete fAtomicFormatter.exchange(stolen); in operator =()
265 delete fAtomicFormatter.exchange(nullptr); in ~LocalizedNumberRangeFormatter()
/external/angle/src/common/
DSpinlock.h48 !mLock.exchange(true, std::memory_order_acquire); in try_lock()
53 while (mLock.exchange(true, std::memory_order_acquire)) in lock()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_state.h577 Exchange* exchange = exchanges_.GetReadyForRequestWriting(); in MaybeIssueRequestWriteLocked() local
578 if (exchange == nullptr) { in MaybeIssueRequestWriteLocked()
583 exchange->MarkRequestWriteIssued(); in MaybeIssueRequestWriteLocked()
586 call_->Write(exchange->request_buf(), &request_write_completed_tag_); in MaybeIssueRequestWriteLocked()
590 Exchange* exchange = exchanges_.GetReadyForResponseReading(); in MaybeIssueResponseReadLocked() local
591 if (exchange == nullptr) { in MaybeIssueResponseReadLocked()
594 exchange->MarkResponseReadIssued(); in MaybeIssueResponseReadLocked()
597 call_->Read(exchange->response_buf(), &response_read_completed_tag_); in MaybeIssueResponseReadLocked()
/external/pdfium/third_party/base/allocator/partition_allocator/
Dspin_lock.cc85 LIKELY(!lock_.exchange(true, std::memory_order_acquire))) in LockSlow()
101 } while (UNLIKELY(lock_.exchange(true, std::memory_order_acquire))); in LockSlow()
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Datomic-1.ll21 define i32 @exchange(i32* %mem, i32 %val) nounwind {
22 ; CHECK-LABEL: exchange:
/external/llvm/test/CodeGen/PowerPC/
Datomic-1.ll21 define i32 @exchange(i32* %mem, i32 %val) nounwind {
22 ; CHECK-LABEL: exchange:
/external/llvm/test/CodeGen/SystemZ/
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

12345678910>>...23