Home
last modified time | relevance | path

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

12345678910>>...19

/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/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/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/v8/src/heap/
Dlist.h20 List(List&& other) V8_NOEXCEPT : front_(std::exchange(other.front_, nullptr)), in List()
21 back_(std::exchange(other.back_, nullptr)) {} in List()
23 front_ = std::exchange(other.front_, nullptr);
24 back_ = std::exchange(other.back_, nullptr);
/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/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_state.h552 Exchange* exchange = exchanges_.GetReadyForRequestWriting(); in MaybeIssueRequestWriteLocked() local
553 if (exchange == nullptr) { in MaybeIssueRequestWriteLocked()
558 exchange->MarkRequestWriteIssued(); in MaybeIssueRequestWriteLocked()
561 call_->Write(exchange->request_buf(), &request_write_completed_tag_); in MaybeIssueRequestWriteLocked()
565 Exchange* exchange = exchanges_.GetReadyForResponseReading(); in MaybeIssueResponseReadLocked() local
566 if (exchange == nullptr) { in MaybeIssueResponseReadLocked()
569 exchange->MarkResponseReadIssued(); in MaybeIssueResponseReadLocked()
572 call_->Read(exchange->response_buf(), &response_read_completed_tag_); in MaybeIssueResponseReadLocked()
/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/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.cpp242 auto* stolen = _src.fAtomicFormatter.exchange(nullptr); in LocalizedNumberRangeFormatter()
243 delete fAtomicFormatter.exchange(stolen); in LocalizedNumberRangeFormatter()
249 delete fAtomicFormatter.exchange(nullptr); in operator =()
256 auto* stolen = src.fAtomicFormatter.exchange(nullptr); in operator =()
257 delete fAtomicFormatter.exchange(stolen); in operator =()
263 delete fAtomicFormatter.exchange(nullptr); in ~LocalizedNumberRangeFormatter()
/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/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/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-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
/external/swiftshader/src/Vulkan/
DVkQueryPool.cpp33 auto prevState = state.exchange(UNAVAILABLE); in reset()
41 auto prevState = state.exchange(ACTIVE); in prepare()
56 auto prevState = state.exchange(FINISHED); in finish()
/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
/external/python/cryptography/tests/hazmat/primitives/
Dtest_x25519.py60 computed_shared_key = private_key.exchange(public_key)
75 computed_shared_key = private_key.exchange(public_key)
99 private_key.exchange(public_key)
163 key.exchange(object())

12345678910>>...19