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
00027 #ifndef SHOPERATION_HPP
00028 #define SHOPERATION_HPP
00029
00030 #include "ShDllExport.hpp"
00031
00032 namespace SH {
00033
00039 enum ShOperation {
00040 SH_OP_ASN,
00041
00042
00043 SH_OP_NEG,
00044 SH_OP_ADD,
00045 SH_OP_MUL,
00046
00047 SH_OP_DIV,
00048
00049
00050
00051 SH_OP_SLT,
00052 SH_OP_SLE,
00053 SH_OP_SGT,
00054 SH_OP_SGE,
00055 SH_OP_SEQ,
00056 SH_OP_SNE,
00057
00058
00059 SH_OP_ABS,
00060 SH_OP_ACOS,
00061 SH_OP_ASIN,
00062 SH_OP_ATAN,
00063 SH_OP_ATAN2,
00064
00065 SH_OP_CBRT,
00066 SH_OP_CEIL,
00067 SH_OP_COS,
00068 SH_OP_CMUL,
00069 SH_OP_CSUM,
00070 SH_OP_DOT,
00071 SH_OP_DX,
00072 SH_OP_DY,
00073
00074 SH_OP_EXP,
00075 SH_OP_EXP2,
00076 SH_OP_EXP10,
00077 SH_OP_FLR,
00078 SH_OP_FRAC,
00079
00080 SH_OP_LOG,
00081 SH_OP_LOG2,
00082 SH_OP_LOG10,
00083 SH_OP_LRP,
00084
00085 SH_OP_MAD,
00086 SH_OP_MAX,
00087 SH_OP_MIN,
00088 SH_OP_MOD,
00089
00090 SH_OP_POW,
00091 SH_OP_RCP,
00092 SH_OP_RND,
00093 SH_OP_RSQ,
00094
00095 SH_OP_SIN,
00096 SH_OP_SGN,
00097 SH_OP_SQRT,
00098 SH_OP_TAN,
00099
00100
00101 SH_OP_NORM,
00102 SH_OP_XPD,
00103
00104
00105 SH_OP_TEX,
00106 SH_OP_TEXI,
00107 SH_OP_TEXD,
00108
00109
00110 SH_OP_COND,
00111
00112
00113 SH_OP_KIL,
00114
00115
00116 SH_OP_OPTBRA,
00117
00118
00119
00120
00121 SH_OP_FETCH,
00122 SH_OP_LOOKUP,
00123
00124
00125
00126 SH_OP_PAL,
00127
00128 SH_OP_LO,
00129 SH_OP_HI,
00130 SH_OP_SETLO,
00131 SH_OP_SETHI,
00132
00133 SH_OPERATION_END,
00134 };
00135
00136 #ifdef IGNORE
00137 #undef IGNORE
00138 #endif
00139
00141 struct
00142 SH_DLLEXPORT
00143 ShOperationInfo {
00144 const char* name;
00145 int arity;
00146
00147 enum ResultSource {
00148 LINEAR,
00149 ALL,
00150 EXTERNAL,
00151
00152 IGNORE
00153 } result_source;
00154
00155 bool commutative;
00156 };
00157
00158
00159 SH_DLLEXPORT
00160 extern const ShOperationInfo opInfo[];
00161
00162 }
00163
00164 #endif