Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include <cray/dopevec.h>
00040 #include <cray/format.h>
00041
00042
00043
00044
00045
00046 #define MDPART 040000
00047 #define MCFT 020000
00048 #define MPLS 010000
00049 #define MEXPS 04000
00050 #define MSEXP 02000
00051 #define MMAN 01000
00052 #define MD 0400
00053 #define MG 0200
00054 #define ME 0100
00055 #define MF 040
00056 #define MI 020
00057 #define MX 010
00058 #define MO 04
00059 #define MBZ 02
00060 #define MBN 01
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 #define INVALID_INTLEN ((signed char) -1)
00072
00073
00074
00075
00076
00077
00078 #define MAX_SUP_INTLEN 16
00079
00080
00081
00082
00083 #ifdef _CRAY
00084
00085 #define _RCHK $RCHK
00086 #define _RNOCHK $RNOCHK
00087 #define _WCHK $WCHK
00088 #define _WNOCHK $WNOCHK
00089
00090 #endif
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100 #define INVALID_WTYPE(op, type) (*(long *)(&_WCHK[type-1]) & (1L << (op-1)))
00101 #define INVALID_RTYPE(op, type) (*(long *)(&_RCHK[type-1]) & (1L << (op-1)))
00102
00103
00104
00105
00106
00107 typedef struct fmtchk {
00108
00109 #ifndef _WORD32
00110 unsigned long :32;
00111 #endif
00112 unsigned long :18;
00113
00114 unsigned long q :1;
00115 unsigned long z :1;
00116 unsigned long r :1;
00117 unsigned long o :1;
00118 unsigned long l :1;
00119 unsigned long i :1;
00120 unsigned long g :1;
00121 unsigned long f :1;
00122 unsigned long es :1;
00123 unsigned long en :1;
00124 unsigned long e :1;
00125 unsigned long d :1;
00126 unsigned long b :1;
00127 unsigned long a :1;
00128 } fmtchk_t;
00129
00130
00131
00132
00133
00134 extern signed char _wr_ilchk[LAST_DATA_ED][MAX_SUP_INTLEN];
00135 extern signed char _rd_ilchk[LAST_DATA_ED][MAX_SUP_INTLEN];
00136 extern signed char _rw_mxdgt[LAST_DATA_ED][MAX_SUP_INTLEN];
00137 extern fmtchk_t _RCHK[DVTYPE_ASCII];
00138 extern fmtchk_t _RNOCHK[DVTYPE_ASCII];
00139 extern fmtchk_t _RCHK77[DVTYPE_ASCII];
00140 extern fmtchk_t _RCHK90[DVTYPE_ASCII];
00141 extern fmtchk_t _WCHK[DVTYPE_ASCII];
00142 extern fmtchk_t _WNOCHK[DVTYPE_ASCII];
00143 extern fmtchk_t _WCHK77[DVTYPE_ASCII];
00144 extern fmtchk_t _WCHK90[DVTYPE_ASCII];