Lines Matching refs:ResultOverflowed
197 bool ResultOverflowed; in SaturatingAddTestHelper() local
200 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
201 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper()
204 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
205 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
208 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
209 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper()
212 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
213 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
216 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
217 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
231 bool ResultOverflowed; in SaturatingMultiplyTestHelper() local
235 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
236 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
239 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
240 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
244 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
245 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
248 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
249 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
252 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
253 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
256 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
257 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
260 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
261 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
265 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
266 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
269 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
270 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
273 EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
274 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
289 EXPECT_EQ(Max, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
290 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
293 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
294 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()