[mpich2-commits] r5504 - mpich2/trunk/src/include

goodell at mcs.anl.gov goodell at mcs.anl.gov
Tue Oct 20 15:35:38 CDT 2009


Author: goodell
Date: 2009-10-20 15:35:38 -0500 (Tue, 20 Oct 2009)
New Revision: 5504

Modified:
   mpich2/trunk/src/include/mpihandlemem.h
Log:
Add HANDLE_SET_MPI_KIND macro for parity.

No reviewer.

Modified: mpich2/trunk/src/include/mpihandlemem.h
===================================================================
--- mpich2/trunk/src/include/mpihandlemem.h	2009-10-20 20:35:37 UTC (rev 5503)
+++ mpich2/trunk/src/include/mpihandlemem.h	2009-10-20 20:35:38 UTC (rev 5504)
@@ -74,6 +74,7 @@
 
 #define HANDLE_MPI_KIND_SHIFT 26
 #define HANDLE_GET_MPI_KIND(a) ( ((a)&0x3c000000) >> HANDLE_MPI_KIND_SHIFT )
+#define HANDLE_SET_MPI_KIND(a,kind) ((a) | ((kind) << HANDLE_MPI_KIND_SHIFT))
 
 /* returns the name of the handle kind for debugging/logging purposes */
 const char *MPIU_Handle_get_kind_str(int kind);



More information about the mpich2-commits mailing list