Searched refs:MathLimits (Results 1 – 11 of 11) sorted by relevance
55 const bool MathLimits<Type>::kIsSigned; \56 const bool MathLimits<Type>::kIsInteger; \57 const int MathLimits<Type>::kMin10Exp; \58 const int MathLimits<Type>::kMax10Exp;62 const Type MathLimits<Type>::kPosMin; \63 const Type MathLimits<Type>::kPosMax; \64 const Type MathLimits<Type>::kMin; \65 const Type MathLimits<Type>::kMax; \66 const Type MathLimits<Type>::kEpsilon; \67 const Type MathLimits<Type>::kStdError;[all …]
102 return MathLimits<T>::IsNaN(x) || x > y ? x : y; in Max()118 static typename MathLimits<T>::UnsignedType AbsDiff(const T x, const T y) { in AbsDiff()120 typedef typename MathLimits<T>::UnsignedType R; in AbsDiff()147 if (MathLimits<T>::kIsInteger) { in WithinFractionOrMargin()151 if (!MathLimits<T>::IsFinite(x) && !MathLimits<T>::IsFinite(y)) { in WithinFractionOrMargin()
65 template<typename T> struct MathLimits { struct167 struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \187 struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \246 struct LIBPROTOBUF_EXPORT MathLimits<FP_Type> { \
1256 } else if (MathLimits<double>::IsNaN(value)) { in DoubleToBuffer()1374 } else if (MathLimits<float>::IsNaN(value)) { in FloatToBuffer()
326 if (MathLimits<double>::IsPosInf(value)) return "Infinity"; in DoubleAsString()327 if (MathLimits<double>::IsNegInf(value)) return "-Infinity"; in DoubleAsString()328 if (MathLimits<double>::IsNaN(value)) return "NaN"; in DoubleAsString()334 if (MathLimits<float>::IsFinite(value)) return SimpleFtoa(value); in FloatAsString()344 if (MathLimits<double>::IsInf(double_value) || in SafeStrToFloat()345 MathLimits<double>::IsNaN(double_value)) in SafeStrToFloat()
117 if (MathLimits<double>::IsFinite(value)) { in RenderDouble()126 if (MathLimits<float>::IsFinite(value)) { in RenderFloat()
99 if (MathLimits<From>::IsNaN(before)) { in FloatingPointConvertAndCheck()
174 MathLimits<T>::IsNaN(value_1) && MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()180 MathLimits<T>::IsNaN(value_1) && MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()
255 message_1_.set_optional_float(MathLimits<float>::kNaN); in TEST_F()256 message_2_.set_optional_float(MathLimits<float>::kNaN); in TEST_F()257 message_1_.set_optional_double(MathLimits<double>::kNaN); in TEST_F()258 message_2_.set_optional_double(MathLimits<double>::kNaN); in TEST_F()
326 } else if (MathLimits<double>::IsNaN(value)) { in default_value()337 } else if (MathLimits<float>::IsNaN(value)) { in default_value()
905 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(11))); in TEST_F()906 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(12))); in TEST_F()