00001 #ifndef _CONV_HEADER_H 00002 #define _CONV_HEADER_H 00003 00004 #include "conv-config.h" 00005 00006 /******** CMI: TYPE DEFINITIONS ********/ 00007 typedef CMK_TYPEDEF_INT1 CmiInt1; 00008 typedef CMK_TYPEDEF_INT2 CmiInt2; 00009 typedef CMK_TYPEDEF_INT4 CmiInt4; 00010 typedef CMK_TYPEDEF_INT8 CmiInt8; 00011 typedef CMK_TYPEDEF_UINT1 CmiUInt1; 00012 typedef CMK_TYPEDEF_UINT2 CmiUInt2; 00013 typedef CMK_TYPEDEF_UINT4 CmiUInt4; 00014 typedef CMK_TYPEDEF_UINT8 CmiUInt8; 00015 #if CMK___int128_t_DEFINED 00016 typedef __int128_t CmiInt16; 00017 typedef __uint128_t CmiUInt16; 00018 #elif CMK___int128_DEFINED 00019 typedef __int128 CmiInt16; 00020 typedef __uint128 CmiUInt16; 00021 #endif 00022 00023 #if defined(CMK_CUSTOM_FP_FORMAT) 00024 typedef CMK_TYPEDEF_FLOAT4 CmiFloat4; 00025 typedef CMK_TYPEDEF_FLOAT8 CmiFloat8; 00026 #else 00027 typedef float CmiFloat4; 00028 typedef double CmiFloat8; 00029 #endif 00030 00031 typedef void *CmiCommHandle; 00032 typedef void (*CmiHandler)(void *msg); 00033 typedef void (*CmiHandlerEx)(void *msg,void *userPtr); 00034 00035 00036 00037 typedef struct CMK_MSG_HEADER_BASIC CmiMsgHeaderBasic; 00038 typedef struct CMK_MSG_HEADER_EXT CmiMsgHeaderExt; 00039 00040 #define CmiMsgHeaderSizeBytes (sizeof(CmiMsgHeaderBasic)) 00041 #define CmiExtHeaderSizeBytes (sizeof(CmiMsgHeaderExt)) 00042 00043 /* all common extra fields in BigSim message header */ 00044 #define CMK_BIGSIM_FIELDS CmiInt4 nd,n; double rt; CmiInt2 tID, hID; char t, flag; CmiInt2 ref; CmiInt4 msgID, srcPe; 00045 00046 #ifndef CmiReservedHeaderSize 00047 typedef struct CMK_MSG_HEADER_BIGSIM_ CmiBlueGeneMsgHeader; 00048 #define CmiBlueGeneMsgHeaderSizeBytes (sizeof(CmiBlueGeneMsgHeader)) 00049 #if CMK_BIGSIM_CHARM 00050 # define CmiReservedHeaderSize CmiBlueGeneMsgHeaderSizeBytes 00051 #else 00052 # define CmiReservedHeaderSize CmiExtHeaderSizeBytes 00053 #endif 00054 #endif 00055 00056 #endif