X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-pointer-static.h;h=eb073afa18683c5a6d1a626397aef70a21678d2c;hb=632dd6bae1cb2b590185c2bdad12e9531409aa53;hp=c0533c9d3281af0f613e7490ce18e67594bf75e4;hpb=e156285068a631eaafa643d9e930b31780468d00;p=urcu.git diff --git a/urcu-pointer-static.h b/urcu-pointer-static.h index c0533c9..eb073af 100644 --- a/urcu-pointer-static.h +++ b/urcu-pointer-static.h @@ -78,10 +78,7 @@ if (!__builtin_constant_p(_new) || \ ((_new) != NULL)) \ wmb(); \ - (likely(URCU_CAS_AVAIL()) ? \ - (uatomic_cmpxchg(p, _________pold, _________pnew)) : \ - (compat_uatomic_cmpxchg(p, _________pold, \ - _________pnew))) \ + uatomic_cmpxchg(p, _________pold, _________pnew); \ }) /** @@ -106,7 +103,7 @@ if (!__builtin_constant_p(v) || \ ((v) != NULL)) \ wmb(); \ - STORE_SHARED(*(p), _________pv); \ + uatomic_set(p, _________pv); \ }) /**