< prev index next >

src/hotspot/os_cpu/linux_sparc/atomic_linux_sparc.hpp

Print this page

        

*** 81,92 **** return rv; } template<> template<typename T> ! inline T Atomic::PlatformXchg<4>::operator()(T exchange_value, ! T volatile* dest, atomic_memory_order order) const { STATIC_ASSERT(4 == sizeof(T)); T rv = exchange_value; __asm__ volatile( " swap [%2],%1\n\t" --- 81,92 ---- return rv; } template<> template<typename T> ! inline T Atomic::PlatformXchg<4>::operator()(T volatile* dest, ! T exchange_value, atomic_memory_order order) const { STATIC_ASSERT(4 == sizeof(T)); T rv = exchange_value; __asm__ volatile( " swap [%2],%1\n\t"
*** 96,107 **** return rv; } template<> template<typename T> ! inline T Atomic::PlatformXchg<8>::operator()(T exchange_value, ! T volatile* dest, atomic_memory_order order) const { STATIC_ASSERT(8 == sizeof(T)); T rv = exchange_value; __asm__ volatile( "1:\n\t" --- 96,107 ---- return rv; } template<> template<typename T> ! inline T Atomic::PlatformXchg<8>::operator()(T volatile* dest, ! T exchange_value, atomic_memory_order order) const { STATIC_ASSERT(8 == sizeof(T)); T rv = exchange_value; __asm__ volatile( "1:\n\t"
< prev index next >