Update 386 cmpxchg support
[urcu.git] / urcu-pointer-static.h
index 33bfdeecae3351a4b339481eb253b342434ece76..c0533c9d3281af0f613e7490ce18e67594bf75e4 100644 (file)
                if (!__builtin_constant_p(_new) ||                      \
                    ((_new) != NULL))                                   \
                        wmb();                                          \
-               uatomic_cmpxchg(p, _________pold, _________pnew);       \
+               (likely(URCU_CAS_AVAIL()) ?                             \
+                       (uatomic_cmpxchg(p, _________pold, _________pnew)) : \
+                       (compat_uatomic_cmpxchg(p, _________pold,       \
+                                               _________pnew)))        \
        })
 
 /**
This page took 0.023326 seconds and 4 git commands to generate.