Lines Matching defs:infinity
2501 RawType infinity;
2534 // +infinity.
2535 values_.infinity = Floating::Infinity();
2537 // The bits that represent +infinity.
2538 const Bits infinity_bits = Floating(values_.infinity).bits();
2540 // Makes some numbers close to infinity.
2620 // Tests comparing with infinity.
2624 TEST_F(FloatTest, Infinity) {
2625 EXPECT_FLOAT_EQ(values_.infinity, values_.close_to_infinity);
2626 EXPECT_FLOAT_EQ(-values_.infinity, -values_.close_to_infinity);
2628 // Nokia's STLport crashes if we try to output infinity or NaN.
2629 EXPECT_NONFATAL_FAILURE(EXPECT_FLOAT_EQ(values_.infinity, -values_.infinity),
2630 "-values_.infinity");
2632 // This is interesting as the representations of infinity and nan1
2634 EXPECT_NONFATAL_FAILURE(EXPECT_FLOAT_EQ(values_.infinity, values_.nan1),
2642 // Nokia's STLport crashes if we try to output infinity or NaN.
2659 EXPECT_FATAL_FAILURE(ASSERT_FLOAT_EQ(v.nan1, v.infinity),
2660 "v.infinity");
2668 ASSERT_FLOAT_EQ(values_.infinity, values_.infinity);
2724 // Nokia's STLport crashes if we try to output infinity or NaN.
2728 EXPECT_PRED_FORMAT2(FloatLE, values_.nan1, values_.infinity);
2729 }, "(values_.nan1) <= (values_.infinity)");
2731 EXPECT_PRED_FORMAT2(FloatLE, -values_.infinity, values_.nan1);
2732 }, "(-values_.infinity) <= (values_.nan1)");
2793 // Tests comparing with infinity.
2797 TEST_F(DoubleTest, Infinity) {
2798 EXPECT_DOUBLE_EQ(values_.infinity, values_.close_to_infinity);
2799 EXPECT_DOUBLE_EQ(-values_.infinity, -values_.close_to_infinity);
2801 // Nokia's STLport crashes if we try to output infinity or NaN.
2802 EXPECT_NONFATAL_FAILURE(EXPECT_DOUBLE_EQ(values_.infinity, -values_.infinity),
2803 "-values_.infinity");
2807 EXPECT_NONFATAL_FAILURE(EXPECT_DOUBLE_EQ(values_.infinity, values_.nan1),
2823 // Nokia's STLport crashes if we try to output infinity or NaN.
2828 EXPECT_FATAL_FAILURE(ASSERT_DOUBLE_EQ(v.nan1, v.infinity),
2829 "v.infinity");
2838 // Nokia's STLport crashes if we try to output infinity or NaN.
2839 ASSERT_DOUBLE_EQ(values_.infinity, values_.infinity);
2896 // Nokia's STLport crashes if we try to output infinity or NaN.
2900 EXPECT_PRED_FORMAT2(DoubleLE, values_.nan1, values_.infinity);
2901 }, "(values_.nan1) <= (values_.infinity)");
2903 EXPECT_PRED_FORMAT2(DoubleLE, -values_.infinity, values_.nan1);
2904 }, " (-values_.infinity) <= (values_.nan1)");