projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uatomic compat: complete i386 support
[urcu.git]
/
urcu-pointer-static.h
diff --git
a/urcu-pointer-static.h
b/urcu-pointer-static.h
index c0533c9d3281af0f613e7490ce18e67594bf75e4..eb073afa18683c5a6d1a626397aef70a21678d2c 100644
(file)
--- a/
urcu-pointer-static.h
+++ b/
urcu-pointer-static.h
@@
-78,10
+78,7
@@
if (!__builtin_constant_p(_new) || \
((_new) != NULL)) \
wmb(); \
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(); \
if (!__builtin_constant_p(v) || \
((v) != NULL)) \
wmb(); \
-
STORE_SHARED(*(p), _________pv);
\
+
uatomic_set(p, _________pv);
\
})
/**
})
/**
This page took
0.023923 seconds
and
4
git commands to generate.