![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
The compare and swap function object. More...
#include <operation.hpp>
Public Member Functions | |
| template<typename T, std::enable_if_t< std::is_floating_point_v< T >, bool > = true> | |
| ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto | operator() (T *addr, T const &compare, T const &value) const -> T |
| Cas for floating point values. | |
| template<typename T, std::enable_if_t<!std::is_floating_point_v< T >, bool > = true> | |
| ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto | operator() (T *addr, T const &compare, T const &value) const -> T |
| Cas for non floating point values. | |
The compare and swap function object.
Definition at line 189 of file operation.hpp.
|
inline |
Cas for floating point values.
Definition at line 209 of file operation.hpp.
|
inline |
Cas for non floating point values.
Definition at line 195 of file operation.hpp.