Lines Matching refs:constant
51 bool operator==(const ConstantUnion& constant) const
53 if (constant.type != type)
58 if (constant.iConst == iConst)
63 if (constant.fConst == fConst)
68 if (constant.bConst == bConst)
92 bool operator!=(const ConstantUnion& constant) const
94 return !operator==(constant);
97 bool operator>(const ConstantUnion& constant) const
99 assert(type == constant.type);
102 if (iConst > constant.iConst)
107 if (fConst > constant.fConst)
119 bool operator<(const ConstantUnion& constant) const
121 assert(type == constant.type);
124 if (iConst < constant.iConst)
129 if (fConst < constant.fConst)
141 ConstantUnion operator+(const ConstantUnion& constant) const
144 assert(type == constant.type);
146 case EbtInt: returnValue.setIConst(iConst + constant.iConst); break;
147 case EbtFloat: returnValue.setFConst(fConst + constant.fConst); break;
154 ConstantUnion operator-(const ConstantUnion& constant) const
157 assert(type == constant.type);
159 case EbtInt: returnValue.setIConst(iConst - constant.iConst); break;
160 case EbtFloat: returnValue.setFConst(fConst - constant.fConst); break;
167 ConstantUnion operator*(const ConstantUnion& constant) const
170 assert(type == constant.type);
172 case EbtInt: returnValue.setIConst(iConst * constant.iConst); break;
173 case EbtFloat: returnValue.setFConst(fConst * constant.fConst); break;
180 ConstantUnion operator%(const ConstantUnion& constant) const
183 assert(type == constant.type);
185 case EbtInt: returnValue.setIConst(iConst % constant.iConst); break;
192 ConstantUnion operator>>(const ConstantUnion& constant) const
195 assert(type == constant.type);
197 case EbtInt: returnValue.setIConst(iConst >> constant.iConst); break;
204 ConstantUnion operator<<(const ConstantUnion& constant) const
207 assert(type == constant.type);
209 case EbtInt: returnValue.setIConst(iConst << constant.iConst); break;
216 ConstantUnion operator&(const ConstantUnion& constant) const
219 assert(type == constant.type);
221 case EbtInt: returnValue.setIConst(iConst & constant.iConst); break;
228 ConstantUnion operator|(const ConstantUnion& constant) const
231 assert(type == constant.type);
233 case EbtInt: returnValue.setIConst(iConst | constant.iConst); break;
240 ConstantUnion operator^(const ConstantUnion& constant) const
243 assert(type == constant.type);
245 case EbtInt: returnValue.setIConst(iConst ^ constant.iConst); break;
252 ConstantUnion operator&&(const ConstantUnion& constant) const
255 assert(type == constant.type);
257 case EbtBool: returnValue.setBConst(bConst && constant.bConst); break;
264 ConstantUnion operator||(const ConstantUnion& constant) const
267 assert(type == constant.type);
269 case EbtBool: returnValue.setBConst(bConst || constant.bConst); break;