Lines Matching defs:rhs
56 CheckedNumeric(const CheckedNumeric<Src>& rhs)
57 : state_(rhs.ValueUnsafe(), rhs.validity()) {}
117 template <typename Src> CheckedNumeric& operator+=(Src rhs);
118 template <typename Src> CheckedNumeric& operator-=(Src rhs);
119 template <typename Src> CheckedNumeric& operator*=(Src rhs);
120 template <typename Src> CheckedNumeric& operator/=(Src rhs);
121 template <typename Src> CheckedNumeric& operator%=(Src rhs);
202 const CheckedNumeric<T>& lhs, const CheckedNumeric<T>& rhs) { \
206 return CheckedNumeric<T>(lhs.ValueUnsafe() OP rhs.ValueUnsafe()); \
209 lhs.ValueUnsafe() OP rhs.ValueUnsafe(), \
210 GetRangeConstraint(rhs.validity() | lhs.validity())); \
213 static_cast<Promotion>(rhs.ValueUnsafe()), \
217 GetRangeConstraint(validity | lhs.validity() | rhs.validity())); \
222 CheckedNumeric<T>& CheckedNumeric<T>::operator COMPOUND_OP(Src rhs) { \
223 *this = CheckedNumeric<T>::cast(*this) OP CheckedNumeric<Src>::cast(rhs); \
229 const CheckedNumeric<Src>& lhs, const CheckedNumeric<T>& rhs) { \
233 lhs.ValueUnsafe() OP rhs.ValueUnsafe(), \
234 GetRangeConstraint(rhs.validity() | lhs.validity())); \
236 OP CheckedNumeric<Promotion>::cast(rhs); \
241 const CheckedNumeric<T>& lhs, Src rhs) { \
244 return CheckedNumeric<Promotion>(lhs.ValueUnsafe() OP rhs, \
247 OP CheckedNumeric<Promotion>::cast(rhs); \
252 Src lhs, const CheckedNumeric<T>& rhs) { \
255 return CheckedNumeric<Promotion>(lhs OP rhs.ValueUnsafe(), \
256 rhs.validity()); \
258 OP CheckedNumeric<Promotion>::cast(rhs); \