Searched refs:host_atomic_exchange (Results 1 – 3 of 3) sorted by relevance
/external/OpenCL-CTS/test_conformance/c11_atomics/ |
D | host_atomics.cpp | 32 HOST_FLOAT host_atomic_exchange(volatile HOST_ATOMIC_FLOAT* a, HOST_FLOAT c, TExplicitMemoryOrderTy… in host_atomic_exchange() function 34 HOST_UINT tmp = host_atomic_exchange((volatile HOST_ATOMIC_UINT*)a, *(HOST_UINT*)&c, order); in host_atomic_exchange() 38 HOST_DOUBLE host_atomic_exchange(volatile HOST_ATOMIC_DOUBLE* a, HOST_DOUBLE c, TExplicitMemoryOrde… in host_atomic_exchange() function 40 HOST_ULONG tmp = host_atomic_exchange((volatile HOST_ATOMIC_ULONG*)a, *(HOST_ULONG*)&c, order); in host_atomic_exchange() 59 HOST_FLAG old = host_atomic_exchange(a, 1, order); in host_atomic_flag_test_and_set()
|
D | host_atomics.h | 119 CorrespondingType host_atomic_exchange(volatile AtomicType *a, CorrespondingType c, in host_atomic_exchange() function 131 template <> HOST_FLOAT host_atomic_exchange(volatile HOST_ATOMIC_FLOAT *a, HOST_FLOAT c, 133 template <> HOST_DOUBLE host_atomic_exchange(volatile HOST_ATOMIC_DOUBLE *a, HOST_DOUBLE c, 178 host_atomic_exchange(a, c, order); in host_atomic_store() 184 host_atomic_exchange(a, c, MEMORY_ORDER_RELAXED); in host_atomic_init()
|
D | test_atomics.cpp | 348 oldValues[tid] = host_atomic_exchange(&destMemory[0], (HostDataType)tid, MemoryOrder()); in HostFunction() 350 oldValues[tid] = host_atomic_exchange(&destMemory[0], oldValues[tid], MemoryOrder()); in HostFunction()
|