提交 19dfaa35 编写于 作者: B Behdad Esfahbod

[atomic] Remove volatile from IBM impl signature

上级 2093a3e0
...@@ -161,13 +161,13 @@ typedef int32_t hb_atomic_int_impl_t; ...@@ -161,13 +161,13 @@ typedef int32_t hb_atomic_int_impl_t;
#include <builtins.h> #include <builtins.h>
static inline int _hb_fetch_and_add(volatile int* AI, unsigned int V) { static inline int _hb_fetch_and_add (int* AI, unsigned int V) {
__lwsync(); __lwsync();
int result = __fetch_and_add(AI, V); int result = __fetch_and_add(AI, V);
__lwsync(); __lwsync();
return result; return result;
} }
static inline int _hb_compare_and_swaplp(volatile long* P, long O, long N) { static inline int _hb_compare_and_swaplp (long* P, long O, long N) {
__lwsync(); __lwsync();
int result = __compare_and_swaplp (P, &O, N); int result = __compare_and_swaplp (P, &O, N);
__lwsync(); __lwsync();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册