Lines Matching refs:Promotion
199 typedef typename ArithmeticPromotion<T>::type Promotion; \
203 if (IsIntegerArithmeticSafe<Promotion, T, T>::value) \
204 return CheckedNumeric<Promotion>( \
208 T result = Checked##NAME(static_cast<Promotion>(lhs.ValueUnsafe()), \
209 static_cast<Promotion>(rhs.ValueUnsafe()), \
211 return CheckedNumeric<Promotion>( \
226 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
227 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
228 return CheckedNumeric<Promotion>( \
231 return CheckedNumeric<Promotion>::cast(lhs) \
232 OP CheckedNumeric<Promotion>::cast(rhs); \
238 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
239 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
240 return CheckedNumeric<Promotion>(lhs.ValueUnsafe() OP rhs, \
242 return CheckedNumeric<Promotion>::cast(lhs) \
243 OP CheckedNumeric<Promotion>::cast(rhs); \
249 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
250 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
251 return CheckedNumeric<Promotion>(lhs OP rhs.ValueUnsafe(), \
253 return CheckedNumeric<Promotion>::cast(lhs) \
254 OP CheckedNumeric<Promotion>::cast(rhs); \