Lines Matching refs:UnsignedDst
28 using UnsignedDst = typename std::make_unsigned<T>::type; in CheckedAddImpl() local
30 UnsignedDst ux = static_cast<UnsignedDst>(x); in CheckedAddImpl()
31 UnsignedDst uy = static_cast<UnsignedDst>(y); in CheckedAddImpl()
32 UnsignedDst uresult = static_cast<UnsignedDst>(ux + uy); in CheckedAddImpl()
88 using UnsignedDst = typename std::make_unsigned<T>::type;
90 UnsignedDst ux = static_cast<UnsignedDst>(x);
91 UnsignedDst uy = static_cast<UnsignedDst>(y);
92 UnsignedDst uresult = static_cast<UnsignedDst>(ux - uy);
148 using UnsignedDst = typename std::make_unsigned<T>::type;
150 const UnsignedDst ux = SafeUnsignedAbs(x);
151 const UnsignedDst uy = SafeUnsignedAbs(y);
152 UnsignedDst uresult = static_cast<UnsignedDst>(ux * uy);
159 return uy <= UnsignedDst(!std::is_signed<T>::value || is_negative) ||
160 ux <= (std::numeric_limits<T>::max() + UnsignedDst(is_negative)) / uy;