• Home
  • Raw
  • Download

Lines Matching refs:getAsFloat

254   EXPECT_THAT(GetParam(), Eq(res.getAsFloat()));  in TEST_P()
263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
370 EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f)); in TEST()
371 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST()
372 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST()
373 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST()
374 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST()
375 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST()
377 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST()
378 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST()
379 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFC00000)).getAsFloat())); in TEST()
380 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800100)).getAsFloat())); in TEST()
381 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800c00)).getAsFloat())); in TEST()
382 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF80F000)).getAsFloat())); in TEST()
383 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFFFFFFF)).getAsFloat())); in TEST()
384 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7FC00000)).getAsFloat())); in TEST()
385 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7F800100)).getAsFloat())); in TEST()
386 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7f800c00)).getAsFloat())); in TEST()
387 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7F80F000)).getAsFloat())); in TEST()
388 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0x7FFFFFFF)).getAsFloat())); in TEST()
418 EXPECT_THAT((-FloatProxy<float>(1.f)).getAsFloat(), Eq(-1.0f)); in TEST()
419 EXPECT_THAT((-FloatProxy<float>(0.f)).getAsFloat(), Eq(-0.0f)); in TEST()
421 EXPECT_THAT((-FloatProxy<float>(-1.f)).getAsFloat(), Eq(1.0f)); in TEST()
422 EXPECT_THAT((-FloatProxy<float>(-0.f)).getAsFloat(), Eq(0.0f)); in TEST()
424 EXPECT_THAT((-FloatProxy<float>(32.f)).getAsFloat(), Eq(-32.0f)); in TEST()
425 EXPECT_THAT((-FloatProxy<float>(-32.f)).getAsFloat(), Eq(32.0f)); in TEST()
427 EXPECT_THAT((-FloatProxy<float>(1.2e32f)).getAsFloat(), Eq(-1.2e32f)); in TEST()
428 EXPECT_THAT((-FloatProxy<float>(-1.2e32f)).getAsFloat(), Eq(1.2e32f)); in TEST()
431 (-FloatProxy<float>(std::numeric_limits<float>::infinity())).getAsFloat(), in TEST()
434 .getAsFloat(), in TEST()
696 return f.value().getAsFloat(); in set_from_sign()
916 EXPECT_EQ(GetParam().expected_half, half.value().getAsFloat().get_value()) in TEST_P()
919 << " cast to: " << half.value().getAsFloat().get_value(); in TEST_P()
1039 EXPECT_EQ(GetParam().expected_float, flt.value().getAsFloat()) in TEST_P()
1042 << " cast to: " << flt.value().getAsFloat(); in TEST_P()
1234 EXPECT_THAT(value.value().getAsFloat(), GetParam().expected_value); in TEST_P()
1261 EXPECT_THAT(value.value().getAsFloat(), Eq(GetParam().expected_value)); in TEST_P()
1311 EXPECT_THAT(FloatProxy<Float16>::max().getAsFloat().get_value(), in TEST()
1313 EXPECT_THAT(FloatProxy<float>::max().getAsFloat(), in TEST()
1315 EXPECT_THAT(FloatProxy<double>::max().getAsFloat(), in TEST()
1320 EXPECT_THAT(FloatProxy<Float16>::lowest().getAsFloat().get_value(), in TEST()
1322 EXPECT_THAT(FloatProxy<float>::lowest().getAsFloat(), in TEST()
1324 EXPECT_THAT(FloatProxy<double>::lowest().getAsFloat(), in TEST()