Home
last modified time | relevance | path

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

/third_party/abseil-cpp/absl/random/internal/
Dgenerate_real_test.cc37 auto ToFloat = [](uint64_t a) { in TEST() local
40 EXPECT_EQ(ToFloat(0x0000000000000000), 2.710505431e-20f); in TEST()
41 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST()
42 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST()
43 EXPECT_EQ(ToFloat(0x8000000000000001), 0.5); in TEST()
44 EXPECT_EQ(ToFloat(0xFFFFFFFFFFFFFFFF), 0.9999999404f); in TEST()
48 auto ToFloat = [](uint64_t a) { in TEST() local
51 EXPECT_EQ(ToFloat(0x0000000000000000), 0.0); in TEST()
52 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST()
53 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dgenerate_real_test.cc37 auto ToFloat = [](uint64_t a) { in TEST() local
40 EXPECT_EQ(ToFloat(0x0000000000000000), 2.710505431e-20f); in TEST()
41 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST()
42 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST()
43 EXPECT_EQ(ToFloat(0x8000000000000001), 0.5); in TEST()
44 EXPECT_EQ(ToFloat(0xFFFFFFFFFFFFFFFF), 0.9999999404f); in TEST()
48 auto ToFloat = [](uint64_t a) { in TEST() local
51 EXPECT_EQ(ToFloat(0x0000000000000000), 0.0); in TEST()
52 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST()
53 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST()
[all …]
/third_party/abseil-cpp/absl/strings/
Dcharconv_test.cc161 float ToFloat(absl::string_view s) { in ToFloat() function
203 EXPECT_EQ(ToFloat("5.e-20"), ldexpf(15474250, -88)); in TEST()
204 EXPECT_EQ(ToFloat("67.e14"), ldexpf(12479722, 29)); in TEST()
205 EXPECT_EQ(ToFloat("985.e15"), ldexpf(14333636, 36)); in TEST()
206 EXPECT_EQ(ToFloat("7693.e-42"), ldexpf(10979816, -150)); in TEST()
207 EXPECT_EQ(ToFloat("55895.e-16"), ldexpf(12888509, -61)); in TEST()
208 EXPECT_EQ(ToFloat("996622.e-44"), ldexpf(14224264, -150)); in TEST()
209 EXPECT_EQ(ToFloat("7038531.e-32"), ldexpf(11420669, -107)); in TEST()
210 EXPECT_EQ(ToFloat("60419369.e-46"), ldexpf(8623340, -150)); in TEST()
211 EXPECT_EQ(ToFloat("702990899.e-20"), ldexpf(16209866, -61)); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcharconv_test.cc161 float ToFloat(absl::string_view s) { in ToFloat() function
203 EXPECT_EQ(ToFloat("5.e-20"), ldexpf(15474250, -88)); in TEST()
204 EXPECT_EQ(ToFloat("67.e14"), ldexpf(12479722, 29)); in TEST()
205 EXPECT_EQ(ToFloat("985.e15"), ldexpf(14333636, 36)); in TEST()
206 EXPECT_EQ(ToFloat("7693.e-42"), ldexpf(10979816, -150)); in TEST()
207 EXPECT_EQ(ToFloat("55895.e-16"), ldexpf(12888509, -61)); in TEST()
208 EXPECT_EQ(ToFloat("996622.e-44"), ldexpf(14224264, -150)); in TEST()
209 EXPECT_EQ(ToFloat("7038531.e-32"), ldexpf(11420669, -107)); in TEST()
210 EXPECT_EQ(ToFloat("60419369.e-46"), ldexpf(8623340, -150)); in TEST()
211 EXPECT_EQ(ToFloat("702990899.e-20"), ldexpf(16209866, -61)); in TEST()
[all …]
/third_party/protobuf/src/google/protobuf/util/internal/
Dobject_writer.cc65 ow->RenderFloat(name, data.ToFloat().value()); in RenderDataPieceTo()
Ddatapiece.h143 util::StatusOr<float> ToFloat() const;
Ddatapiece.cc187 StatusOr<float> DataPiece::ToFloat() const { in ToFloat() function in google::protobuf::util::converter::DataPiece
Ddefault_value_objectwriter.cc444 field.default_value(), &DataPiece::ToFloat, static_cast<float>(0))); in CreateDefaultDataPieceForField()
Dproto_writer.cc235 StatusOr<float> f = data.ToFloat(); in WriteFloat()
Dprotostream_objectwriter.cc950 StatusOr<float> float_value = data.ToFloat(); in RenderStructValue()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DConvertVertex.comp50 // The *ToFloat conversions can convert to a half-precision float based on a parameter. When not