1
1

Solve a problem when cross-compiling for PPC32 - in this case, OPAL_HAVE_ATOMIC_CMPSET_64 is not set, but the code requires that the ADD_64 and SUB_64 values at least be defined.

This commit was SVN r24528.
Этот коммит содержится в:
Ralph Castain 2011-03-15 15:50:49 +00:00
родитель a8c1a3b4ee
Коммит 7eede54b39

Просмотреть файл

@ -101,6 +101,16 @@ opal_atomic_sub_64(volatile int64_t *addr, int64_t delta)
}
#endif /* OPAL_HAVE_ATOMIC_SUB_64 */
#else
#if !defined(OPAL_HAVE_ATOMIC_ADD_64)
#define OPAL_HAVE_ATOMIC_ADD_64 0
#endif
#if !defined(OPAL_HAVE_ATOMIC_SUB_64)
#define OPAL_HAVE_ATOMIC_SUB_64 0
#endif
#endif /* OPAL_HAVE_ATOMIC_CMPSET_64 */