mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
fix powerpc build
This commit is contained in:
parent
15eada93ed
commit
b83314e884
@ -91,16 +91,16 @@ syncInstructionCache(const void* start, unsigned size)
|
||||
}
|
||||
|
||||
#ifdef USE_ATOMIC_OPERATIONS
|
||||
# if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 1)
|
||||
inline bool
|
||||
atomicCompareAndSwap(uintptr_t* p, uintptr_t old, uintptr_t new_)
|
||||
{
|
||||
#if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 1)
|
||||
return __sync_bool_compare_and_swap(p, old, new_);
|
||||
#else // not GCC >= 4.1
|
||||
// todo: implement using inline assembly
|
||||
# undef USE_ATOMIC_OPERATIONS
|
||||
#endif // not GCC >= 4.1
|
||||
}
|
||||
# else // not GCC >= 4.1
|
||||
// todo: implement using inline assembly
|
||||
# undef USE_ATOMIC_OPERATIONS
|
||||
# endif // not GCC >= 4.1
|
||||
#endif // USE_ATOMIC_OPERATIONS
|
||||
|
||||
inline uint64_t
|
||||
|
Loading…
Reference in New Issue
Block a user