Home
last modified time | relevance | path

Searched refs:MathLimits (Results 1 – 11 of 11) sorted by relevance

/external/protobuf/src/google/protobuf/stubs/
Dmathlimits.cc55 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 …]
Dmathutil.h102 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()
Dmathlimits.h65 template<typename T> struct MathLimits { struct
167 struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \
187 struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \
246 struct LIBPROTOBUF_EXPORT MathLimits<FP_Type> { \
Dstrutil.cc1256 } else if (MathLimits<double>::IsNaN(value)) { in DoubleToBuffer()
1374 } else if (MathLimits<float>::IsNaN(value)) { in FloatToBuffer()
/external/protobuf/src/google/protobuf/util/internal/
Dutility.cc326 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()
Djson_objectwriter.cc117 if (MathLimits<double>::IsFinite(value)) { in RenderDouble()
126 if (MathLimits<float>::IsFinite(value)) { in RenderFloat()
Ddatapiece.cc99 if (MathLimits<From>::IsNaN(before)) { in FloatingPointConvertAndCheck()
/external/protobuf/src/google/protobuf/util/
Dfield_comparator.cc174 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()
Dfield_comparator_test.cc255 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()
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc326 } else if (MathLimits<double>::IsNaN(value)) { in default_value()
337 } else if (MathLimits<float>::IsNaN(value)) { in default_value()
/external/protobuf/src/google/protobuf/
Dtext_format_unittest.cc905 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()