• Home
  • Raw
  • Download

Lines Matching refs:getAsFloat

332   EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f));  in TEST()
333 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST()
334 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST()
335 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST()
336 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST()
337 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST()
339 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST()
340 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST()
341 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFC00000)).getAsFloat())); in TEST()
342 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800100)).getAsFloat())); in TEST()
343 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800c00)).getAsFloat())); in TEST()
344 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF80F000)).getAsFloat())); in TEST()
345 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFFFFFFF)).getAsFloat())); in TEST()
346 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7FC00000)).getAsFloat())); in TEST()
347 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7F800100)).getAsFloat())); in TEST()
348 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7f800c00)).getAsFloat())); in TEST()
349 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7F80F000)).getAsFloat())); in TEST()
350 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7FFFFFFF)).getAsFloat())); in TEST()
380 EXPECT_THAT((-FloatProxy<float>(1.f)).getAsFloat(), Eq(-1.0f)); in TEST()
381 EXPECT_THAT((-FloatProxy<float>(0.f)).getAsFloat(), Eq(-0.0f)); in TEST()
383 EXPECT_THAT((-FloatProxy<float>(-1.f)).getAsFloat(), Eq(1.0f)); in TEST()
384 EXPECT_THAT((-FloatProxy<float>(-0.f)).getAsFloat(), Eq(0.0f)); in TEST()
386 EXPECT_THAT((-FloatProxy<float>(32.f)).getAsFloat(), Eq(-32.0f)); in TEST()
387 EXPECT_THAT((-FloatProxy<float>(-32.f)).getAsFloat(), Eq(32.0f)); in TEST()
389 EXPECT_THAT((-FloatProxy<float>(1.2e32f)).getAsFloat(), Eq(-1.2e32f)); in TEST()
390 EXPECT_THAT((-FloatProxy<float>(-1.2e32f)).getAsFloat(), Eq(1.2e32f)); in TEST()
393 (-FloatProxy<float>(std::numeric_limits<float>::infinity())).getAsFloat(), in TEST()
396 .getAsFloat(), in TEST()
651 return f.value().getAsFloat(); in set_from_sign()
872 EXPECT_EQ(GetParam().expected_half, half.value().getAsFloat().get_value()) in TEST_P()
875 << " cast to: " << half.value().getAsFloat().get_value(); in TEST_P()
940 EXPECT_EQ(GetParam().expected_float, flt.value().getAsFloat()) in TEST_P()
943 << " cast to: " << flt.value().getAsFloat(); in TEST_P()
1136 EXPECT_THAT(value.value().getAsFloat(), GetParam().expected_value); in TEST_P()
1163 EXPECT_THAT(value.value().getAsFloat(), Eq(GetParam().expected_value)); in TEST_P()
1213 EXPECT_THAT(FloatProxy<Float16>::max().getAsFloat().get_value(), in TEST()
1215 EXPECT_THAT(FloatProxy<float>::max().getAsFloat(), in TEST()
1217 EXPECT_THAT(FloatProxy<double>::max().getAsFloat(), in TEST()
1222 EXPECT_THAT(FloatProxy<Float16>::lowest().getAsFloat().get_value(), in TEST()
1224 EXPECT_THAT(FloatProxy<float>::lowest().getAsFloat(), in TEST()
1226 EXPECT_THAT(FloatProxy<double>::lowest().getAsFloat(), in TEST()