Share via


atomic_fetch_or Function

Atomically performs a bitwise OR operation with a value and the value of a memory location.

inline int atomic_fetch_or(
   _Inout_ int * _Dest,
   int _Value                     
) restrict(amp);
                     
inline unsigned int atomic_fetch_or(
   _Inout_ unsigned int * _Dest,
   unsigned int _Value                     
) restrict(amp);

Parameters

  • _Dest
    Pointer to the memory location.

  • _Value
    The value to use in the bitwise OR calculation.

Return Value

The original value of the memory location.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace (C++ AMP)