Lines 144-150
typedef LONG volatile *interlocked_val;
Link Here
|
144 |
#define atomic_inc(env, p) __atomic_inc(p) |
144 |
#define atomic_inc(env, p) __atomic_inc(p) |
145 |
#define atomic_dec(env, p) __atomic_dec(p) |
145 |
#define atomic_dec(env, p) __atomic_dec(p) |
146 |
#define atomic_compare_exchange(env, p, o, n) \ |
146 |
#define atomic_compare_exchange(env, p, o, n) \ |
147 |
__atomic_compare_exchange((p), (o), (n)) |
147 |
__db_atomic_compare_exchange((p), (o), (n)) |
148 |
static inline int __atomic_inc(db_atomic_t *p) |
148 |
static inline int __atomic_inc(db_atomic_t *p) |
149 |
{ |
149 |
{ |
150 |
int temp; |
150 |
int temp; |
Lines 176-182
static inline int __atomic_dec(db_atomic_t *p)
Link Here
|
176 |
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html |
176 |
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html |
177 |
* which configure could be changed to use. |
177 |
* which configure could be changed to use. |
178 |
*/ |
178 |
*/ |
179 |
static inline int __atomic_compare_exchange( |
179 |
static inline int __db_atomic_compare_exchange( |
180 |
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) |
180 |
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) |
181 |
{ |
181 |
{ |
182 |
atomic_value_t was; |
182 |
atomic_value_t was; |