Skip to content

Commit 586c16b

Browse files
author
Sergey Oblomov
committed
ATOMIC/UCX: renamed ATOMIC_PTR_2_INT to OSHMEM_ATOMIC_PTR_2_INT
Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
1 parent 54d97ef commit 586c16b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

oshmem/mca/atomic/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
BEGIN_C_DECLS
3535

36-
#define ATOMIC_PTR_2_INT(ptr, size) ((size) == 8 ? *(uint64_t*)(ptr) : *(uint32_t*)(ptr))
36+
#define OSHMEM_ATOMIC_PTR_2_INT(ptr, size) ((size) == 8 ? *(uint64_t*)(ptr) : *(uint32_t*)(ptr))
3737

3838
/* ******************************************************************** */
3939

oshmem/shmem/c/shmem_cswap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
rc = MCA_ATOMIC_CALL(cswap( \
4040
(void*)target, \
4141
&out_value, \
42-
ATOMIC_PTR_2_INT(&cond, sizeof(cond)), \
43-
ATOMIC_PTR_2_INT(&value, sizeof(value)), \
42+
OSHMEM_ATOMIC_PTR_2_INT(&cond, sizeof(cond)), \
43+
OSHMEM_ATOMIC_PTR_2_INT(&value, sizeof(value)), \
4444
size, \
4545
pe)); \
4646
RUNTIME_CHECK_RC(rc); \

oshmem/shmem/c/shmem_swap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
rc = MCA_ATOMIC_CALL(swap( \
3838
(void*)target, \
3939
(void*)&out_value, \
40-
ATOMIC_PTR_2_INT(&value, sizeof(value)), \
40+
OSHMEM_ATOMIC_PTR_2_INT(&value, sizeof(value)), \
4141
size, \
4242
pe)); \
4343
RUNTIME_CHECK_RC(rc); \

0 commit comments

Comments
 (0)