Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

atomic_fetch_and Function

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

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

Pointer to the memory location.


The value to use in the bitwise AND calculation.

The original value of the memory location.

Header: amp.h

Namespace: Concurrency

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.