Home
last modified time | relevance | path

Searched refs:fetch_and (Results 1 – 25 of 45) sorted by relevance

12

/external/rust/crates/atomic/src/
Dlib.rs277 pub fn fetch_and(&self, val: bool, order: Ordering) -> bool { in fetch_and() method
321 pub fn fetch_and(&self, val: $t, order: Ordering) -> $t {
404 assert_eq!(a.fetch_and(false, SeqCst), true); in atomic_bool()
423 assert_eq!(a.fetch_and(7, SeqCst), -74); in atomic_i8()
443 assert_eq!(a.fetch_and(7, SeqCst), 182); in atomic_i16()
463 assert_eq!(a.fetch_and(7, SeqCst), 182); in atomic_i32()
486 assert_eq!(a.fetch_and(7, SeqCst), 182); in atomic_i64()
506 assert_eq!(a.fetch_and(7, SeqCst), 182); in atomic_i128()
525 assert_eq!(a.fetch_and(7, SeqCst), 182); in atomic_isize()
545 assert_eq!(a.fetch_and(7, SeqCst), 70); in atomic_u8()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__atomic/
Datomic_base.h173 …_LIBCPP_HIDE_FROM_ABI _Tp fetch_and(_Tp __op, memory_order __m = memory_order_seq_cst) volatile _N…
176 … _LIBCPP_HIDE_FROM_ABI _Tp fetch_and(_Tp __op, memory_order __m = memory_order_seq_cst) _NOEXCEPT {
217 _Tp operator&=(_Tp __op) volatile _NOEXCEPT {return fetch_and(__op) & __op;}
219 _Tp operator&=(_Tp __op) _NOEXCEPT {return fetch_and(__op) & __op;}
Datomic.h517 return __o->fetch_and(__op);
529 return __o->fetch_and(__op);
543 return __o->fetch_and(__op, __m);
555 return __o->fetch_and(__op, __m);
/external/rust/crates/crossbeam-utils/src/atomic/
Datomic_cell.rs387 pub fn fetch_and(&self, val: $t) -> $t {
574 pub fn fetch_and(&self, val: $t) -> $t {
577 a.fetch_and(val, Ordering::AcqRel)
770 pub fn fetch_and(&self, val: bool) -> bool { in fetch_and() method
772 a.fetch_and(val, Ordering::AcqRel) in fetch_and()
/external/rust/crates/parking_lot/src/
Draw_rwlock.rs731 self.state.fetch_and(!WRITER_PARKED_BIT, Ordering::Relaxed); in unlock_shared_slow()
880 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in downgrade_slow()
896 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in downgrade_to_upgradable_slow()
1044 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in wait_for_readers()
1106 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in lock_common()
Draw_mutex.rs254 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in lock_slow()
/external/perfetto/src/tracing/
Dtrack_event_category_registry.cc60 state_storage_[category_index].fetch_and( in DisableCategoryForInstance()
/external/cronet/base/task/sequence_manager/
Dwork_deduplicator.cc71 return (state_.fetch_and(~kInDoWorkFlag) & kPendingDoWorkFlag) in DidCheckForMoreWork()
Datomic_flag_set.cc54 group_->flags.fetch_and(~flag_bit_, std::memory_order_relaxed); in SetActive()
/external/cronet/base/task/thread_pool/
Djob_task_source.cc81 return value_.fetch_and(kWaitingForWorkerToSignal, in ShouldWorkerYield()
319 uint32_t previous_task_ids = assigned_task_ids_.fetch_and( in ReleaseTaskId()
/external/rust/crates/futures-core/src/task/__internal/
Datomic_waker.rs382 self.state.fetch_and(!WAKING, Release); in take()
/external/cronet/base/allocator/partition_allocator/starscan/
Dstate_bitmap.h236 const CellType cell_before = cell.fetch_and(mask, std::memory_order_relaxed); in Quarantine()
293 cell.fetch_and(mask, std::memory_order_relaxed); in Free()
427 .fetch_and(clear_value_mask, std::memory_order_relaxed); in IterateImpl()
/external/rust/crates/async-task/src/
Dheader.rs57 .fetch_and(!NOTIFYING & !AWAITER, Ordering::Release); in take()
Draw.rs474 let state = (*raw.header).state.fetch_and(!SCHEDULED, Ordering::AcqRel); in run()
656 .fetch_and(!RUNNING & !SCHEDULED, Ordering::AcqRel); in run()
Drunnable.rs376 let state = (*header).state.fetch_and(!SCHEDULED, Ordering::AcqRel); in drop()
/external/rust/crates/crossbeam-utils/
DCHANGELOG.md49 - Re-add `AtomicCell<{i,u}64>::{fetch_add,fetch_sub,fetch_and,fetch_or,fetch_xor}` that were accide…
50 - Re-add `AtomicCell<{i,u}128>::{fetch_add,fetch_sub,fetch_and,fetch_or,fetch_xor}` that were accid…
/external/rust/crates/tokio/src/sync/task/
Datomic_waker.rs323 self.state.fetch_and(!WAKING, Release); in take_waker()
/external/rust/crates/spin/src/mutex/
Dfair.rs247 self.lock.fetch_and(!LOCKED, Ordering::Release); in force_unlock()
434 self.lock.fetch_and(!LOCKED, Ordering::Release); in drop()
/external/crosvm/devices/src/virtio/
Dinterrupt.rs197 .fetch_and(!(mask as usize), Ordering::SeqCst); in clear_interrupt_status_bits()
/external/rust/crates/futures-util/src/lock/
Dmutex.rs179 self.state.fetch_and(!HAS_WAITERS, Ordering::Relaxed); // released by mutex unlock in remove_waker()
187 let old_state = self.state.fetch_and(!IS_LOCKED, Ordering::AcqRel); in unlock()
/external/libcxx/include/
Datomic171 fetch_and(integral op, memory_order m = memory_order_seq_cst) volatile noexcept;
172 integral fetch_and(integral op, memory_order m = memory_order_seq_cst) noexcept;
1025 _Tp fetch_and(_Tp __op, memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT
1028 _Tp fetch_and(_Tp __op, memory_order __m = memory_order_seq_cst) _NOEXCEPT
1068 _Tp operator&=(_Tp __op) volatile _NOEXCEPT {return fetch_and(__op) & __op;}
1070 _Tp operator&=(_Tp __op) _NOEXCEPT {return fetch_and(__op) & __op;}
1573 return __o->fetch_and(__op);
1585 return __o->fetch_and(__op);
1599 return __o->fetch_and(__op, __m);
1611 return __o->fetch_and(__op, __m);
/external/tensorflow/third_party/absl/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc172 info->hashes_bitwise_and.fetch_and(hash, std::memory_order_relaxed); in RecordInsertSlow()
/external/webrtc/third_party/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc172 info->hashes_bitwise_and.fetch_and(hash, std::memory_order_relaxed); in RecordInsertSlow()
/external/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc172 info->hashes_bitwise_and.fetch_and(hash, std::memory_order_relaxed); in RecordInsertSlow()
/external/rust/crates/parking_lot_core/src/
Dword_lock.rs274 self.state.fetch_and(!QUEUE_LOCKED_BIT, Ordering::Release); in unlock_slow()

12