atomic_fetch_or

atomic_fetch_or#

stdgpu: stdgpu::atomic_fetch_or
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ atomic_fetch_or()

template<typename T , typename Allocator >
STDGPU_DEVICE_ONLY T stdgpu::atomic_fetch_or ( atomic< T, Allocator > *  obj,
const typename atomic< T, Allocator >::difference_type  arg 
)
noexcept

Atomically computes and stores the bitwise OR of the stored value and the given argument.

Parameters
[in]objThe atomic object
[in]argThe other argument of bitwise OR
Returns
The old value