Export (0) Print
Expand All

atomic_fetch_min Function

Atomically computes the minimum value between the value stored at the memory location specified in the first argument and the value specified in the second argument, and stores it at the same memory location.

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

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

_Dest

The location from which one of the values to be compared is read, and to which the minimum of the two values is to be stored.

_Value

The value to be compared to the value at the specified location.

The original value stored at the specified location location.

Header: amp.h

Namespace: Concurrency

Show:
© 2014 Microsoft