Changeset 3908

Show
Ignore:
Timestamp:
02/27/09 16:33:36 (13 months ago)
Author:
jayesh
Message:

Moving *CAST* macros for MPIR_{P|Up}int types from mpiimpl.h to mpitypedefs.h - This will help parts of code to use the macros without including mpiimpl.h - Review@thakur

Location:
mpich2/trunk/src/include
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/include/mpiimpl.h

    r3837 r3908  
    3535   do not want mpi.h to depend on any other files or configure flags */ 
    3636#include "mpichconf.h" 
    37  
    38 /* Adding the 32-bit compute/64-bit I/O related type-casts in here as 
    39  * they are not a part of the MPI standard yet. */ 
    40 #define MPI_AINT_CAST_TO_VOID_PTR (void *)(MPIR_Pint) 
    41 #define MPI_VOID_PTR_CAST_TO_MPI_AINT (MPI_Aint)(MPIR_Upint) 
    42 #define MPI_PTR_DISP_CAST_TO_MPI_AINT (MPI_Aint)(MPIR_Pint) 
    4337 
    4438#include <stdio.h> 
  • mpich2/trunk/src/include/mpitypedefs.h

    r3456 r3908  
    106106#define MPIU_AintToPtr(a) (void*)(a) 
    107107#endif 
     108 
     109/* Adding the 32-bit compute/64-bit I/O related type-casts in here as 
     110 * they are not a part of the MPI standard yet. */ 
     111#define MPI_AINT_CAST_TO_VOID_PTR (void *)(MPIR_Pint) 
     112#define MPI_VOID_PTR_CAST_TO_MPI_AINT (MPI_Aint)(MPIR_Upint) 
     113#define MPI_PTR_DISP_CAST_TO_MPI_AINT (MPI_Aint)(MPIR_Pint) 
     114 
    108115/* ------------------------------------------------------------------------- */ 
    109116/* end of mpitypedefs.h */