Lines Matching refs:res
85 bool AddInt(T op1, T op2, T minValue, T maxValue, T &res)
96 res = op1 + op2;
100 inline bool AddInt32(int32_t op1, int32_t op2, int32_t &res)
102 return AddInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res);
105 inline bool AddInt64(int64_t op1, int64_t op2, int64_t &res)
107 return AddInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res);
111 bool MultiplyInt(T op1, T op2, T minVal, T maxVal, T &res)
134 res = op1 * op2;
138 inline bool MultiplyInt32(int32_t op1, int32_t op2, int32_t& res)
140 return MultiplyInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res);
143 inline bool MultiplyInt64(int64_t op1, int64_t op2, int64_t& res)
145 return MultiplyInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res);