/usr/include/paw/ntuple/fcode.h is in libpawlib2-dev 1:2.14.04.dfsg.2-9.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | /*
* fcode.h --
* The function codes.
*
* Original: 1-Nov-1994 19:05
*
* Author: Maarten Ballintijn <Maarten.Ballintijn@cern.ch>
*
* $Id: fcode.h,v 1.12 1996/04/23 18:37:56 maartenb Exp $
*
* $Log: fcode.h,v $
* Revision 1.12 1996/04/23 18:37:56 maartenb
* - Add RCS keywords
*
*
*/
#ifndef CERN_FCODE
#define CERN_FCODE
#define CAT_BITS 6
#define MASK_FC 0xfff
/* bit indicating last instruction in segment */
#define FC_HALT_BIT 0x80000000L
/* bit indicating non scalar operation */
#define FC_VECTOR_BIT 0x40000000L
/* bit indicating need for test of dynamic size of operands */
#define FC_DYNAMIC_TEST_BIT 0x20000000L
/* bit indicating need to leave dynamic size of operand(s) on the stack*/
#define FC_DYNAMIC_INFO_BIT 0x10000000L
/* Define categories of operations */
/*
* categories are used to split-up the total set of operations
* in manageble parts
*/
typedef enum _category_ {
CAT_NONE = 1,
CAT_OP, /* mathematical operators and comparisons */
CAT_CONV, /* conversions */
CAT_CONST, /* named constants */
CAT_MATH_SINGLE,/* mathematical function single precision */
CAT_MATH_DOUBLE,/* mathematical function double precision */
CAT_BITOP, /* BITPAK bit operations (MIL-STD-1753)*/
CAT_VAR, /* ntuple variables */
CAT_LITERAL, /* literals */
CAT_COMIS, /* comis calls */
CAT_DYN, /* slices of ntup vars */
CAT_MASK, /* mask reading and writing */
CAT_FLOW /* flow control & debug */
} Category;
typedef enum _fcode_ {
/* numeric operators */
FC_OR = 0 * 64, /* reserve 16 slots (max 16 types) */
FC_AND,
FC_NOT,
FC_LT,
FC_LE,
FC_LTLT,
FC_LTLE,
FC_LELT,
FC_LELE,
FC_GT,
FC_GE,
FC_GTGT,
FC_GTGE,
FC_GEGT,
FC_GEGE,
FC_EQ,
FC_NE,
FC_CT,
FC_PLUS,
FC_MINUS,
FC_TIMES,
FC_DIV,
FC_UMINUS,
FC_POW,
FC_VADD,
FC_VMUL,
FC_VAND,
FC_VOR,
FC_VMIN,
FC_VMAX,
FC_MIN,
FC_MAX,
/* type converters */
FC_B_2_B = 16 * 64, /* reserve 4 slots (max 16 types) */
FC_B_2_U,
FC_B_2_LU,
FC_B_2_I,
FC_B_2_LI,
FC_B_2_F,
FC_B_2_LF,
FC_U_2_B,
FC_U_2_U,
FC_U_2_LU,
FC_U_2_I,
FC_U_2_LI,
FC_U_2_F,
FC_U_2_LF,
FC_LU_2_B,
FC_LU_2_U,
FC_LU_2_LU,
FC_LU_2_I,
FC_LU_2_LI,
FC_LU_2_F,
FC_LU_2_LF,
FC_I_2_B,
FC_I_2_U,
FC_I_2_LU,
FC_I_2_I,
FC_I_2_LI,
FC_I_2_F,
FC_I_2_LF,
FC_LI_2_B,
FC_LI_2_U,
FC_LI_2_LU,
FC_LI_2_I,
FC_LI_2_LI,
FC_LI_2_F,
FC_LI_2_LF,
FC_F_2_B,
FC_F_2_U,
FC_F_2_LU,
FC_F_2_I,
FC_F_2_LI,
FC_F_2_F,
FC_F_2_LF,
FC_LF_2_B,
FC_LF_2_U,
FC_LF_2_LU,
FC_LF_2_I,
FC_LF_2_LI,
FC_LF_2_F,
FC_LF_2_LF,
/* constants */
FC_TRUE = 20 * 64,
FC_FALSE,
FC_PI,
FC_DPI,
FC_UINT32_MIN,
FC_UINT32_MAX,
FC_UINT64_MIN,
FC_UINT64_MAX,
FC_INT32_MIN,
FC_INT32_MAX,
FC_INT64_MIN,
FC_INT64_MAX,
FC_FLOAT32_MIN,
FC_FLOAT32_MAX,
FC_FLOAT64_MIN,
FC_FLOAT64_MAX,
FC_SUBSTR,
FC_MATCH,
/* builtin math functions single precision */
FC_FSIN = 21 * 64,
FC_FCOS,
FC_FSQRT,
FC_FEXP,
FC_FLOG,
FC_FATAN,
FC_FABS,
FC_FLOG10,
FC_FTANH,
FC_FACOS,
FC_FASIN,
FC_FTAN,
FC_FSINH,
FC_FCOSH,
FC_FMOD,
FC_FATAN2,
FC_FSIGN,
FC_FINT,
FC_FFRAC,
/* ... */
/* builtin math functions double precision */
FC_DSIN = 22 * 64,
FC_DCOS,
FC_DSQRT,
FC_DEXP,
FC_DLOG,
FC_DATAN,
FC_DABS,
FC_DLOG10,
FC_DTANH,
FC_DACOS,
FC_DASIN,
FC_DTAN,
FC_DSINH,
FC_DCOSH,
FC_DMOD,
FC_DATAN2,
FC_DSIGN,
FC_DINT,
FC_DFRAC,
/* ... */
/* NTuple var loading */
FC_CWN_SCA_BOOL = 23 * 64,
FC_CWN_SCA_UINT,
FC_CWN_SCA_ULONG,
FC_CWN_SCA_INT,
FC_CWN_SCA_LONG,
FC_CWN_SCA_FLOAT,
FC_CWN_SCA_DOUBLE,
FC_CWN_SCA_STR,
FC_CWN_MAT_BOOL,
FC_CWN_MAT_UINT,
FC_CWN_MAT_ULONG,
FC_CWN_MAT_INT,
FC_CWN_MAT_LONG,
FC_CWN_MAT_FLOAT,
FC_CWN_MAT_DOUBLE,
FC_CWN_MAT_STR,
FC_RWN_SCA_LOAD,
/* Literals */
FC_LIT_SCA_BOOL = 24 * 64,
FC_LIT_SCA_UINT,
FC_LIT_SCA_ULONG,
FC_LIT_SCA_INT,
FC_LIT_SCA_LONG,
FC_LIT_SCA_FLOAT,
FC_LIT_SCA_DOUBLE,
FC_LIT_SCA_STR,
/* Bit operations */
/* fc + i * 16 ; i=0,1,2,3 for uint, ulong, int, long */
FC_IOR = 25 * 64,
FC_IAND,
FC_INOT,
FC_IEOR,
FC_ISHFT,
FC_ISHFTC,
FC_IBITS,
FC_MVBITS,
FC_BTEST,
FC_IBSET,
FC_IBCLR,
FC_IABS,
FC_IMOD,
FC_ISIGN,
/* Comis calls */
FC_CS_LFUN = 26 * 64, /* call comis function returning bool */
FC_CS_IFUN, /* call comis function returning integer */
FC_CS_RFUN, /* call comis function returning real */
FC_CS_DFUN, /* call comis function returning double */
FC_CS_SFUN, /* call comis function returning string */
/* slices of ntuple variables */
/* fc + (ndim -1) * 16 ; ndim 4 and higher are mapped on the same */
/* code and have and extra word containing the real ndim */
FC_CWN_DYN_BOOL = 27 * 64,
FC_CWN_DYN_UINT,
FC_CWN_DYN_ULONG,
FC_CWN_DYN_INT,
FC_CWN_DYN_LONG,
FC_CWN_DYN_FLOAT,
FC_CWN_DYN_DOUBLE,
FC_CWN_DYN_STR,
/* Mask reading and writing */
FC_MASK_SET_BIT = 28 * 64, /* set bit */
FC_MASK_GET_BIT, /* get bit */
FC_MASK_GET_WORD, /* get the whole word */
/* flow control */
FC_HALT = 31 * 64,
FC_JUMP,
FC_POP_JUMP, /* pop on true, jump on false */
FC_JUMP_POP, /* pop on false, jump on true */
FC_NOP,
FC_DUMP,
FC_CHECK_SHAPE, /* push a static shape on the shape stack */
FC_CUT, /* Call an expression CUT */
FC_GCUT_1D, /* Call an 1d graphical CUT */
FC_GCUT_2D /* Call a 2d graphical CUT */
} FCode;
extern Category qp_fc_to_cat[];
#endif /* CERN_FCODE */
|