Lines Matching refs:max
28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST()
30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), in TEST()
34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST()
35 std::numeric_limits<int32_t>::max()); in TEST()
36 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max() - 1, 1), in TEST()
37 std::numeric_limits<int64_t>::max()); in TEST()
64 std::numeric_limits<int32_t>::max()); in TEST()
66 std::numeric_limits<int64_t>::max()); in TEST()
69 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::max() - 1, -1), in TEST()
70 std::numeric_limits<int32_t>::max()); in TEST()
71 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::max() - 1, -1), in TEST()
72 std::numeric_limits<int64_t>::max()); in TEST()
98 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::max(), 2), in TEST()
100 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::max(), 2), in TEST()
104 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::max() / 2, 2), in TEST()
105 std::numeric_limits<int32_t>::max() - 1); // -1 as LSB is lost by division. in TEST()
106 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::max() / 2, 2), in TEST()
107 std::numeric_limits<int64_t>::max() - 1); // -1 as LSB is lost by division. in TEST()