< prev index next >

src/os_cpu/linux_x86/vm/atomic_linux_x86.hpp

Print this page
rev 13452 : imported patch Atomic_cmpxchg
rev 13453 : imported patch Atomic_add
rev 13454 : [mq]: Atomic_add_v2

@@ -59,10 +59,13 @@
                     : "0" (add_value), "r" (dest)
                     : "cc", "memory");
   return old_value;
 }
 
+template<>
+struct Atomic::PlatformAdd<2>: Atomic::AddShortUsingInt {};
+
 inline void Atomic::inc    (volatile jint*     dest) {
   __asm__ volatile (  "lock addl $1,(%0)" :
                     : "r" (dest) : "cc", "memory");
 }
 
< prev index next >