Lines Matching refs:std
28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST()
29 std::numeric_limits<int32_t>::min()); in TEST()
30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), in TEST()
31 std::numeric_limits<int64_t>::min()); 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()
39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST()
40 std::numeric_limits<int32_t>::min()); in TEST()
41 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::min() + 1, -1), in TEST()
42 std::numeric_limits<int64_t>::min()); in TEST()
63 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min(), 1), in TEST()
64 std::numeric_limits<int32_t>::max()); in TEST()
65 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::min(), 1), 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()
74 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min() + 1, 1), in TEST()
75 std::numeric_limits<int32_t>::min()); in TEST()
76 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::min() + 1, 1), in TEST()
77 std::numeric_limits<int64_t>::min()); 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()
109 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::min() / 2, 2), in TEST()
110 std::numeric_limits<int32_t>::min()); in TEST()
111 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::min() / 2, 2), in TEST()
112 std::numeric_limits<int64_t>::min()); in TEST()