Lines Matching refs:SafeMul
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()
106 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::max() / 2, 2), in TEST()
109 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::min() / 2, 2), in TEST()
111 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::min() / 2, 2), in TEST()
114 EXPECT_EQ(SafeMul(int32_t(-1), -1), 1); in TEST()
115 EXPECT_EQ(SafeMul(int64_t(-1), -1), 1); in TEST()
117 EXPECT_EQ(SafeMul(int32_t(1), 1), 1); in TEST()
118 EXPECT_EQ(SafeMul(int64_t(1), 1), 1); in TEST()
120 EXPECT_EQ(SafeMul(int32_t(-1), 1), -1); in TEST()
121 EXPECT_EQ(SafeMul(int64_t(-1), 1), -1); in TEST()
123 EXPECT_EQ(SafeMul(int32_t(1), -1), -1); in TEST()
124 EXPECT_EQ(SafeMul(int64_t(1), -1), -1); in TEST()
127 EXPECT_EQ(SafeMul(int32_t(1), int8_t(-1)), -1); in TEST()
128 EXPECT_EQ(SafeMul(int64_t(1), int8_t(-1)), -1); in TEST()