Home
last modified time | relevance | path

Searched refs:atomicExch (Results 1 – 1 of 1) sorted by relevance

/petsc/include/petsc/private/
H A Dcupmatomics.hpp42 __device__ static double atomicExch(double *address, double val) in atomicExch() function
44 return __longlong_as_double(atomicExch((ullint *)address, __double_as_longlong(val))); in atomicExch()
47 __device__ static llint atomicExch(llint *address, llint val) in atomicExch() function
49 return (llint)(atomicExch((ullint *)address, (ullint)val)); in atomicExch()
54 __device__ Type operator()(Type &x, Type y) const { return atomicExch(&x, y); } in operator ()()
491 __device__ static double atomicExch(double *address, double val)
493 return __longlong_as_double(atomicExch((ullint *)address, __double_as_longlong(val)));
497 __device__ static inline llint atomicExch(llint *address, llint val)
499 return (llint)(atomicExch((ullint *)address, (ullint)val));
504 __device__ Type operator()(Type &x, Type y) const { return atomicExch(&x, y); }