[mpich2-commits] r4144 - mpich2/trunk/src/mpid/common/locks

buntinas at mcs.anl.gov buntinas at mcs.anl.gov
Fri Mar 20 09:54:00 CDT 2009


Author: buntinas
Date: 2009-03-20 09:53:59 -0500 (Fri, 20 Mar 2009)
New Revision: 4144

Modified:
   mpich2/trunk/src/mpid/common/locks/mpidu_atomics_gcc_ia64.h
Log:
fixed typo in ia64 atomics

Modified: mpich2/trunk/src/mpid/common/locks/mpidu_atomics_gcc_ia64.h
===================================================================
--- mpich2/trunk/src/mpid/common/locks/mpidu_atomics_gcc_ia64.h	2009-03-20 14:51:38 UTC (rev 4143)
+++ mpich2/trunk/src/mpid/common/locks/mpidu_atomics_gcc_ia64.h	2009-03-20 14:53:59 UTC (rev 4144)
@@ -126,9 +126,8 @@
 
 static inline int *MPIDU_Atomic_swap_int_ptr(int * volatile *ptr, int *val)
 {
-    /* is pointer swizzling necessary here? */
     __asm__ __volatile__ ("xchg8 %0=[%2],%3"
-                          : "=r" (val), "=m" (*val)
+                          : "=r" (val), "=m" (*ptr)
                           : "r" (ptr), "0" (val));
     return val;
 }
@@ -136,18 +135,16 @@
 
 static inline int MPIDU_Atomic_swap_int(volatile int *ptr, int val)
 {
-    /* is pointer swizzling necessary here? */
     __asm__ __volatile__ ("xchg8 %0=[%2],%3"
-                          : "=r" (val), "=m" (*val)
+                          : "=r" (val), "=m" (*ptr)
                           : "r" (ptr), "0" (val));
     return val;
 }
 
 static inline MPI_Aint MPIDU_Atomic_swap_aint(volatile MPI_Aint *ptr, MPI_Aint val)
 {
-    /* is pointer swizzling necessary here? */
     __asm__ __volatile__ ("xchg8 %0=[%2],%3"
-                          : "=r" (val), "=m" (*val)
+                          : "=r" (val), "=m" (*ptr)
                           : "r" (ptr), "0" (val));
     return val;
 }



More information about the mpich2-commits mailing list