Lines Matching refs:numeric_limits
22 using std::numeric_limits;
49 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat()
50 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat()
82 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic()
83 numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic()
85 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic()
138 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic()
139 !numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic()
141 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic()
156 std::numeric_limits<typename SignedIntegerForSize<Dst>::type>::min()) in TestSpecializedArithmetic()
178 typename std::enable_if<numeric_limits<Dst>::is_iec559, int>::type = 0) { in TestSpecializedArithmetic()
179 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic()
211 typedef numeric_limits<Dst> DstLimits; in TestArithmetic()
339 typedef numeric_limits<Src> SrcLimits; in Test()
340 typedef numeric_limits<Dst> DstLimits; in Test()
374 } else if (numeric_limits<Src>::is_signed) { in Test()
384 typedef numeric_limits<Src> SrcLimits; in Test()
385 typedef numeric_limits<Dst> DstLimits; in Test()
431 typedef numeric_limits<Src> SrcLimits; in Test()
432 typedef numeric_limits<Dst> DstLimits; in Test()
453 typedef numeric_limits<Src> SrcLimits; in Test()
454 typedef numeric_limits<Dst> DstLimits; in Test()
496 typedef numeric_limits<Src> SrcLimits; in Test()
497 typedef numeric_limits<Dst> DstLimits; in Test()
619 double double_large = numeric_limits<double>::max(); in TEST()
620 double double_infinity = numeric_limits<float>::infinity(); in TEST()
621 double double_large_int = numeric_limits<int>::max(); in TEST()
622 double double_small_int = numeric_limits<int>::min(); in TEST()
638 EXPECT_TRUE(IsValueNegative(numeric_limits<int>::min())); in TEST()
639 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::min())); in TEST()
640 EXPECT_TRUE(IsValueNegative(-numeric_limits<double>::max())); in TEST()
645 EXPECT_FALSE(IsValueNegative(numeric_limits<int>::max())); in TEST()
646 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::max())); in TEST()
647 EXPECT_FALSE(IsValueNegative(numeric_limits<double>::max())); in TEST()
664 EXPECT_EQ(saturated_cast<int>(double_large), numeric_limits<int>::max()); in TEST()
667 EXPECT_EQ(numeric_limits<int>::min(), saturated_cast<int>(double_small_int)); in TEST()
668 EXPECT_EQ(numeric_limits<int>::max(), saturated_cast<int>(double_large_int)); in TEST()
670 float not_a_number = std::numeric_limits<float>::infinity() - in TEST()
671 std::numeric_limits<float>::infinity(); in TEST()
679 float not_a_number = std::numeric_limits<float>::infinity() - in TEST()
680 std::numeric_limits<float>::infinity(); in TEST()
698 std::numeric_limits<int32_t>::min())); in TEST()
700 std::numeric_limits<int64_t>::min())); in TEST()
714 std::numeric_limits<int32_t>::min())); in TEST()
716 static_cast<int64_t>(std::numeric_limits<int32_t>::min()))); in TEST()
718 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1)); in TEST()
720 std::numeric_limits<int64_t>::min())); in TEST()
731 std::numeric_limits<int32_t>::min())); in TEST()
734 std::numeric_limits<int64_t>::min())); in TEST()
756 std::numeric_limits<int32_t>::min())); in TEST()
758 static_cast<int64_t>(std::numeric_limits<int32_t>::min()))); in TEST()
760 std::numeric_limits<int64_t>::min())); in TEST()
777 CheckedNumeric<int> too_large = std::numeric_limits<int>::max(); in TEST()