Home
last modified time | relevance | path

Searched refs:MyFloat (Results 1 – 8 of 8) sorted by relevance

/third_party/boost/libs/numeric/conversion/test/
Dudt_support_test.cpp45 typedef conversion_traits<double , MyFloat> MyFloat_to_double_Traits;
46 typedef conversion_traits<int , MyFloat> MyFloat_to_int_Traits;
47 typedef conversion_traits<MyInt , MyFloat> MyFloat_to_MyInt_Traits;
49 typedef conversion_traits<MyFloat, MyInt > MyInt_to_MyFloat_Traits;
80 static double low_level_convert ( MyUDT::MyFloat const& s ) in low_level_convert()
87 static int low_level_convert ( MyUDT::MyFloat const& s ) in low_level_convert()
94 static MyUDT::MyInt low_level_convert ( MyUDT::MyFloat const& s ) in low_level_convert()
107 static MyUDT::MyFloat low_level_convert ( MyUDT::MyInt const& s ) in low_level_convert()
109 return MyUDT::MyFloat( static_cast<double>(s.to_builtin()) ) ; in low_level_convert()
152 template<> struct get_builtin_type<MyFloat> { typedef double type ; } ;
[all …]
Dtest_helpers.cpp57 typedef UDT<double> MyFloat ; typedef
68 inline MyFloat floor ( MyFloat const& x ) in floor()
71 return MyFloat ( std::floor(x.to_builtin()) ) ; in floor()
73 return MyFloat ( ::floor(x.to_builtin()) ) ; in floor()
77 inline MyFloat ceil ( MyFloat const& x ) in ceil()
80 return MyFloat ( std::ceil(x.to_builtin()) ) ; in ceil()
82 return MyFloat ( ::ceil(x.to_builtin()) ) ; in ceil()
105 class numeric_limits<MyUDT::MyFloat> : public numeric_limits<double>
Dtraits_test.cpp87 DEFINE_CONVERSION(MyFloat , boost::uint8_t, !cTrivial, integral_to_float , unsigned_to_si…
99 DEFINE_CONVERSION(MyFloat , boost::int8_t, !cTrivial, integral_to_float , signed_to_signe…
111 DEFINE_CONVERSION(MyFloat , boost::uint16_t, !cTrivial, integral_to_float , unsigned_to_s…
123 DEFINE_CONVERSION(MyFloat , boost::int16_t, !cTrivial, integral_to_float , signed_to_sign…
135 DEFINE_CONVERSION(MyFloat , boost::uint32_t, !cTrivial, integral_to_float , unsigned_to_s…
147 DEFINE_CONVERSION(MyFloat , boost::int32_t, !cTrivial, integral_to_float , signed_to_sign…
159 DEFINE_CONVERSION(MyFloat , float, !cTrivial, float_to_float , signed_to_signed , builti…
171 DEFINE_CONVERSION(MyFloat , double, !cTrivial, float_to_float , signed_to_signed , built…
183 DEFINE_CONVERSION(MyFloat , long double, !cTrivial, float_to_float , signed_to_signed , …
195 DEFINE_CONVERSION(MyFloat , MyInt, !cTrivial, integral_to_float , signed_to_signed , udt…
[all …]
/third_party/python/Lib/test/
Dtest_statistics.py747 class MyFloat(float): class
752 for type_ in (float, MyFloat, Decimal, MyDecimal):
761 class MyFloat(float): class
763 for nan in (NAN, MyFloat(NAN)):
982 class MyFloat(float): class
985 x = statistics._convert(Fraction(9, 8), MyFloat)
986 self.check_exact_equal(x, MyFloat(1.125))
1172 class MyFloat(float): class
1181 for kind in (float, MyFloat, Decimal, Fraction):
1199 class MyFloat(float): class
[all …]
Dpickletester.py3246 class MyFloat(float): class
3273 myclasses = [MyInt, MyFloat,
Dtest_descr.py1074 class MyFloat(float): class
1077 (1.0).__class__ = MyFloat
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3.cs4600 public float MyFloat { property in Google.Protobuf.TestProtos.TestFieldOrderings
4633 …::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return f… in Equals()
4643 …if (MyFloat != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCod… in GetHashCode()
4669 if (MyFloat != 0F) { in WriteTo()
4671 output.WriteFloat(MyFloat); in WriteTo()
4694 if (MyFloat != 0F) { in IBufferMessage.InternalWriteTo()
4696 output.WriteFloat(MyFloat); in IBufferMessage.InternalWriteTo()
4717 if (MyFloat != 0F) { in CalculateSize()
4740 if (other.MyFloat != 0F) { in MergeFrom()
4741 MyFloat = other.MyFloat; in MergeFrom()
[all …]
DUnittest.cs14619 public float MyFloat { property in Google.Protobuf.TestProtos.Proto2.TestFieldOrderings
14663 …::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return f… in Equals()
14676 …MyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat); in GetHashCode()
14707 output.WriteFloat(MyFloat); in WriteTo()
14735 output.WriteFloat(MyFloat); in IBufferMessage.InternalWriteTo()
14786 MyFloat = other.MyFloat; in MergeFrom()
14820 MyFloat = input.ReadFloat(); in MergeFrom()
14855 MyFloat = input.ReadFloat(); in IBufferMessage.InternalMergeFrom()