Lines Matching refs:numeric_limits

32   if ((arg1 >= 0 && arg2 <= std::numeric_limits<T>::max() - arg1) ||  in SafeAdd()
33 (arg1 < 0 && arg2 >= std::numeric_limits<T>::min() - arg1)) { in SafeAdd()
46 if (arg1 == 0 || arg2 <= std::numeric_limits<T>::max() / arg1) { in SafeUnsignedMult()
92 if ((arg2 >= 0 && arg1 >= std::numeric_limits<int32_t>::min() + arg2) || in SafeInt32Sub()
93 (arg2 < 0 && arg1 <= std::numeric_limits<int32_t>::max() + arg2)) { in SafeInt32Sub()
167 if (tmp >= std::numeric_limits<std::int32_t>::min() && in SafeInt32Mult()
168 tmp <= std::numeric_limits<std::int32_t>::max()) { in SafeInt32Mult()
187 overflow = (arg1 > std::numeric_limits<std::int64_t>::max() / arg2); in SafeInt64MultSlow()
189 overflow = (arg2 < std::numeric_limits<std::int64_t>::min() / arg1); in SafeInt64MultSlow()
193 overflow = (arg1 < std::numeric_limits<std::int64_t>::min() / arg2); in SafeInt64MultSlow()
196 arg2 < std::numeric_limits<std::int64_t>::max() / arg1); in SafeInt64MultSlow()
264 static_cast<std::uint32_t>(std::numeric_limits<std::int32_t>::max()); in ConvertUint32ToInt32()
276 static_cast<double>(std::numeric_limits<std::int32_t>::min()); in ConvertDoubleToInt32()
278 static_cast<double>(std::numeric_limits<std::int32_t>::max()); in ConvertDoubleToInt32()
290 static_cast<double>(std::numeric_limits<std::uint32_t>::max()); in ConvertDoubleToUint32()
301 const double kMax = std::numeric_limits<float>::max(); in ConvertDoubleToFloat()
303 return std::numeric_limits<float>::infinity(); in ConvertDoubleToFloat()
305 return -std::numeric_limits<float>::infinity(); in ConvertDoubleToFloat()