Home | History | Annotate | Download | only in test

Lines Matching refs:Floating

2644 // Tests floating-point matchers.
2648 typedef testing::internal::FloatingPoint<RawType> Floating;
2649 typedef typename Floating::Bits Bits;
2652 : max_ulps_(Floating::kMaxUlps),
2653 zero_bits_(Floating(0).bits()),
2654 one_bits_(Floating(1).bits()),
2655 infinity_bits_(Floating(Floating::Infinity()).bits()),
2657 Floating::ReinterpretBits(zero_bits_ + max_ulps_/2)),
2659 -Floating::ReinterpretBits(zero_bits_ + max_ulps_ - max_ulps_/2)),
2660 further_from_negative_zero_(-Floating::ReinterpretBits(
2662 close_to_one_(Floating::ReinterpretBits(one_bits_ + max_ulps_)),
2663 further_from_one_(Floating::ReinterpretBits(one_bits_ + max_ulps_ + 1)),
2664 infinity_(Floating::Infinity()),
2666 Floating::ReinterpretBits(infinity_bits_ - max_ulps_)),
2668 Floating::ReinterpretBits(infinity_bits_ - max_ulps_ - 1)),
2669 max_(Floating::Max()),
2670 nan1_(Floating::ReinterpretBits(Floating::kExponentBitMask | 1)),
2671 nan2_(Floating::ReinterpretBits(Floating::kExponentBitMask | 200)) {
2754 // Tests floating-point matchers with fixed epsilons.