• Home
  • Raw
  • Download

Lines Matching refs:ResultOverflowed

226   bool ResultOverflowed;  in SaturatingAddTestHelper()  local
229 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
230 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper()
233 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
234 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
237 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
238 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper()
241 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
242 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
245 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
246 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper()
260 bool ResultOverflowed; in SaturatingMultiplyTestHelper() local
264 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
265 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
268 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
269 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
273 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
274 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
277 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
278 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
281 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
282 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
285 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
286 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
289 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
290 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
294 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
295 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
298 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
299 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
302 EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
303 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
318 EXPECT_EQ(Max, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
319 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyTestHelper()
322 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
323 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyTestHelper()
340 bool ResultOverflowed; in SaturatingMultiplyAddTestHelper() local
344 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
345 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
348 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
349 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
352 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
353 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
356 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
357 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
359 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
360 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
362 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
363 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
365 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
366 EXPECT_TRUE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
369 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
370 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
372 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
373 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
375 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(0), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
376 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()
378 EXPECT_EQ(T(0), SaturatingMultiplyAdd(T(0), T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
379 EXPECT_FALSE(ResultOverflowed); in SaturatingMultiplyAddTestHelper()