Home | History | Annotate | Download | only in test

Lines Matching defs:Floating

2464 // Tests floating-point matchers.
2468 typedef typename testing::internal::FloatingPoint<RawType> Floating;
2469 typedef typename Floating::Bits Bits;
2472 const size_t max_ulps = Floating::kMaxUlps;
2475 const Bits zero_bits = Floating(0).bits();
2478 close_to_positive_zero_ = Floating::ReinterpretBits(zero_bits + max_ulps/2);
2479 close_to_negative_zero_ = -Floating::ReinterpretBits(
2481 further_from_negative_zero_ = -Floating::ReinterpretBits(
2485 const Bits one_bits = Floating(1).bits();
2488 close_to_one_ = Floating::ReinterpretBits(one_bits + max_ulps);
2489 further_from_one_ = Floating::ReinterpretBits(one_bits + max_ulps + 1);
2492 infinity_ = Floating::Infinity();
2495 const Bits infinity_bits = Floating(infinity_).bits();
2498 close_to_infinity_ = Floating::ReinterpretBits(infinity_bits - max_ulps);
2499 further_from_infinity_ = Floating::ReinterpretBits(
2503 nan1_ = Floating::ReinterpretBits(Floating::kExponentBitMask | 1);
2504 nan2_ = Floating::ReinterpretBits(Floating::kExponentBitMask | 200);