Skip to content

Commit b0ed68b

Browse files
authored
Merge pull request #10815 from devreal/fix-atomic-sync-backend
Fix compilation of x86-64-asm atomic backend
2 parents 610d408 + 77e502b commit b0ed68b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/include/opal/sys/x86_64/atomic.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static inline int64_t opal_atomic_fetch_sub_64(opal_atomic_int64_t *v, int64_t i
208208
return ret;
209209
}
210210

211-
static inline int64_t opal_atomic_fetch_sub_64(opal_atomic_int64_t *v, int64_t i)
211+
static inline int64_t opal_atomic_sub_fetch_64(opal_atomic_int64_t *v, int64_t i)
212212
{
213213
return opal_atomic_sub_fetch_64(v, i) - i;
214214
}
@@ -231,7 +231,7 @@ static inline int64_t opal_atomic_fetch_sub_64(opal_atomic_int64_t *v, int64_t i
231231
do { \
232232
oldval = *addr; \
233233
newval = oldval operation value; \
234-
} while (!opal_atomic_compare_exchange_strong_##bits(addr, &oldval, newval); \
234+
} while (!opal_atomic_compare_exchange_strong_##bits(addr, &oldval, newval)); \
235235
\
236236
return newval; \
237237
}
@@ -244,7 +244,7 @@ OPAL_ATOMIC_DEFINE_OP(int64_t, 64, &, and)
244244
OPAL_ATOMIC_DEFINE_OP(int64_t, 64, |, or)
245245
OPAL_ATOMIC_DEFINE_OP(int64_t, 64, ^, xor)
246246

247-
#include "opal/sys/atomic_math_minmax_impl.h"
248-
#include "opal/sys/atomic_math_size_t_impl.h"
247+
#include "opal/sys/atomic_impl_minmax_math.h"
248+
#include "opal/sys/atomic_impl_size_t_math.h"
249249

250250
#endif /* ! OPAL_SYS_ARCH_ATOMIC_H */

0 commit comments

Comments
 (0)