Function spirv_std::arch::atomic_u_min
source · pub unsafe fn atomic_u_min<U: UnsignedInteger, const SCOPE: u32, const SEMANTICS: u32>(
ptr: &mut U,
value: U
) -> U
Expand description
Perform the following steps atomically with respect to any other atomic accesses within Scope to the same location:
- Load through
ptr
to get an original value, - Get a new value by finding the smallest unsigned integer of original
value and
value
, and - Store the new value back through
ptr
.
The result is the original value.