Searched refs:MathLimits (Results 1 – 10 of 10) sorted by relevance
68 const Type MathLimits<Type>::kPosMin = PREFIX##_MIN; \69 const Type MathLimits<Type>::kPosMax = PREFIX##_MAX; \70 const Type MathLimits<Type>::kMin = -MathLimits<Type>::kPosMax; \71 const Type MathLimits<Type>::kMax = MathLimits<Type>::kPosMax; \72 const Type MathLimits<Type>::kNegMin = -MathLimits<Type>::kPosMin; \73 const Type MathLimits<Type>::kNegMax = -MathLimits<Type>::kPosMax; \74 const Type MathLimits<Type>::kEpsilon = PREFIX##_EPSILON; \76 const Type MathLimits<Type>::kStdError = \77 32 * (DBL_EPSILON * DBL_EPSILON > MathLimits<Type>::kEpsilon \78 ? DBL_EPSILON * DBL_EPSILON : MathLimits<Type>::kEpsilon); \[all …]
62 if (value == T(0) || MathLimits<T>::IsNaN(value)) { in Sign()81 return MathLimits<T>::IsNaN(x) || x > y ? x : y; in Max()97 static typename MathLimits<T>::UnsignedType AbsDiff(const T x, const T y) { in AbsDiff()99 typedef typename MathLimits<T>::UnsignedType R; in AbsDiff()126 if (MathLimits<T>::kIsInteger) { in WithinFractionOrMargin()129 if (!MathLimits<T>::IsFinite(x) || !MathLimits<T>::IsFinite(y)) { in WithinFractionOrMargin()
78 template<typename T> struct MathLimits { struct180 struct PROTOBUF_EXPORT MathLimits<IntType> { \200 struct PROTOBUF_EXPORT MathLimits<IntType> { \270 struct PROTOBUF_EXPORT MathLimits<FP_Type> { \
178 if (treat_nan_as_equal_ && MathLimits<T>::IsNaN(value_1) && in CompareDoubleOrFloat()179 MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()184 if (treat_nan_as_equal_ && MathLimits<T>::IsNaN(value_1) && in CompareDoubleOrFloat()185 MathLimits<T>::IsNaN(value_2)) { in CompareDoubleOrFloat()
251 message_1_.set_optional_float(MathLimits<float>::kNaN); in TEST_F()252 message_2_.set_optional_float(MathLimits<float>::kNaN); in TEST_F()253 message_1_.set_optional_double(MathLimits<double>::kNaN); in TEST_F()254 message_2_.set_optional_double(MathLimits<double>::kNaN); in TEST_F()
379 if (MathLimits<double>::IsPosInf(value)) return "Infinity"; in DoubleAsString()380 if (MathLimits<double>::IsNegInf(value)) return "-Infinity"; in DoubleAsString()381 if (MathLimits<double>::IsNaN(value)) return "NaN"; in DoubleAsString()387 if (MathLimits<float>::IsFinite(value)) return SimpleFtoa(value); in FloatAsString()397 if (MathLimits<double>::IsInf(double_value) || in SafeStrToFloat()398 MathLimits<double>::IsNaN(double_value)) in SafeStrToFloat()
121 if (MathLimits<double>::IsFinite(value)) { in RenderDouble()131 if (MathLimits<float>::IsFinite(value)) { in RenderFloat()
103 if (MathLimits<double>::IsNaN(before)) { in DoubleToFloat()105 } else if (!MathLimits<double>::IsFinite(before)) { in DoubleToFloat()178 if (value.ok() && !MathLimits<double>::IsFinite(value.ValueOrDie())) { in ToDouble()
510 !MathLimits<double>::IsFinite(result->double_val)) { in ParseDoubleHelper()
1201 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(11))); in TEST_F()1202 EXPECT_TRUE(MathLimits<double>::IsNaN(message.repeated_double(12))); in TEST_F()