3 ** This files contains definitions that are used throughout the cplant code.
9 #define TITLE(fname,zmig)
22 ** Return codes from functions
32 ** The GCC macro for a safe max() that works on all types arithmetic types.
35 #define MAX(a, b) (a) > (b) ? (a) : (b)
39 #define MIN(a, b) (a) < (b) ? (a) : (b)
43 ** The rest is from the old qkdefs.h
51 #define NULL ((void *)0)
55 #define PRIVATE static
60 typedef unsigned char uchar;
64 typedef unsigned char UCHAR;
66 typedef unsigned char UINT8;
67 typedef short int INT16;
68 typedef unsigned short int UINT16;
70 typedef unsigned int UINT32;
72 typedef unsigned long ULONG32;
74 /* long may be 32 or 64, so we can't really append the size to the definition */
76 typedef unsigned long ULONG;
81 typedef unsigned long uint_t;
87 typedef unsigned int uint_t;
90 typedef float FLOAT32;
91 typedef double FLOAT64;
93 typedef INT32 BOOLEAN;
94 typedef void (*FCN_PTR)(void);
98 #if defined (__alpha__) || defined (__ia64__)
101 typedef long long off64_t;
107 ** Process related typedefs
109 typedef UINT16 PID_TYPE; /* Type of Local process ID */
110 typedef UINT16 NID_TYPE; /* Type of Physical node ID */
111 typedef UINT16 GID_TYPE; /* Type of Group ID */
112 typedef UINT16 RANK_TYPE; /* Type of Logical rank/process within a group */
116 #endif /* CPLANT_H */