Skip to content

Commit

Permalink
[svn-r70] Fix a few missing "_int" suffixes from r69.
Browse files Browse the repository at this point in the history
No reviewer.
  • Loading branch information
goodell committed May 12, 2009
1 parent 0a02bfe commit 9a86057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/primitives/opa_emulated.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static _opa_inline int OPA_swap_int_by_llsc(OPA_int_t *ptr, int val)
static _opa_inline int OPA_fetch_and_add_int_by_cas(OPA_int_t *ptr, int val)
{
int cmp;
int prev = OPA_load(ptr);
int prev = OPA_load_int(ptr);

do {
cmp = prev;
Expand Down Expand Up @@ -179,7 +179,7 @@ static _opa_inline void *OPA_swap_ptr_by_cas(OPA_ptr_t *ptr, void *val)
static _opa_inline int OPA_swap_int_by_cas(OPA_int_t *ptr, int val)
{
int cmp;
int prev = OPA_load(ptr);
int prev = OPA_load_int(ptr);

do {
cmp = prev;
Expand Down
4 changes: 2 additions & 2 deletions src/primitives/opa_gcc_ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ typedef struct { volatile int v OPA_ATTRIBUTE((aligned (8))); } OPA_int_t;
typedef struct { void * volatile v OPA_ATTRIBUTE((aligned (8))); } OPA_ptr_t;

/* Aligned loads and stores are atomic. */
static _opa_inline int OPA_load(OPA_int_t *ptr)
static _opa_inline int OPA_load_int(OPA_int_t *ptr)
{
return ptr->v;
}

/* Aligned loads and stores are atomic. */
static _opa_inline void OPA_store(OPA_int_t *ptr, int val)
static _opa_inline void OPA_store_int(OPA_int_t *ptr, int val)
{
ptr->v = val;
}
Expand Down

0 comments on commit 9a86057

Please sign in to comment.