< prev index next >

src/os_cpu/bsd_zero/vm/atomic_bsd_zero.hpp

Print this page
rev 13460 : [mq]: zero_fix

*** 274,284 **** template<> template<typename T> inline T Atomic::PlatformCmpxchg<4>::operator()(T exchange_value, T volatile* dest, T compare_value, ! cmpxchg_memory_order order) { STATIC_CAST(4 == sizeof(T)); #ifdef ARM return cmpxchg_using_helper<int>(arm_compare_and_swap, exchange_value, dest, compare_value); #else #ifdef M68K --- 274,284 ---- template<> template<typename T> inline T Atomic::PlatformCmpxchg<4>::operator()(T exchange_value, T volatile* dest, T compare_value, ! cmpxchg_memory_order order) const { STATIC_CAST(4 == sizeof(T)); #ifdef ARM return cmpxchg_using_helper<int>(arm_compare_and_swap, exchange_value, dest, compare_value); #else #ifdef M68K
*** 292,302 **** template<> template<typename T> inline T Atomic::PlatformCmpxchg<8>::operator()(T exchange_value, T volatile* dest, T compare_value, ! cmpxchg_memory_order order) { STATIC_CAST(8 == sizeof(T)); return __sync_val_compare_and_swap(dest, compare_value, exchange_value); } inline jlong Atomic::load(const volatile jlong* src) { --- 292,302 ---- template<> template<typename T> inline T Atomic::PlatformCmpxchg<8>::operator()(T exchange_value, T volatile* dest, T compare_value, ! cmpxchg_memory_order order) const { STATIC_CAST(8 == sizeof(T)); return __sync_val_compare_and_swap(dest, compare_value, exchange_value); } inline jlong Atomic::load(const volatile jlong* src) {
< prev index next >