|
@@ -77,7 +77,7 @@ static __always_inline void atomic_sub(int i, atomic_t *v)
|
|
|
*/
|
|
|
static __always_inline bool atomic_sub_and_test(int i, atomic_t *v)
|
|
|
{
|
|
|
- GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, "er", i, "%0", "e");
|
|
|
+ GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, "er", i, "%0", e);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -114,7 +114,7 @@ static __always_inline void atomic_dec(atomic_t *v)
|
|
|
*/
|
|
|
static __always_inline bool atomic_dec_and_test(atomic_t *v)
|
|
|
{
|
|
|
- GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e");
|
|
|
+ GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", e);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -127,7 +127,7 @@ static __always_inline bool atomic_dec_and_test(atomic_t *v)
|
|
|
*/
|
|
|
static __always_inline bool atomic_inc_and_test(atomic_t *v)
|
|
|
{
|
|
|
- GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, "%0", "e");
|
|
|
+ GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, "%0", e);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -141,7 +141,7 @@ static __always_inline bool atomic_inc_and_test(atomic_t *v)
|
|
|
*/
|
|
|
static __always_inline bool atomic_add_negative(int i, atomic_t *v)
|
|
|
{
|
|
|
- GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, "er", i, "%0", "s");
|
|
|
+ GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, "er", i, "%0", s);
|
|
|
}
|
|
|
|
|
|
/**
|