|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
unittests/Support/ScaledNumberTest.cpp 388 EXPECT_EQ(SP32(1, 0), getSum32(0, 0, 1, 0));
389 EXPECT_EQ(SP32(8, -3), getSum32(0, 0, 8, -3));
390 EXPECT_EQ(SP32(UINT32_MAX, 0), getSum32(0, 0, UINT32_MAX, 0));
393 EXPECT_EQ(SP32(2, 0), getSum32(1, 0, 1, 0));
394 EXPECT_EQ(SP32(3, 0), getSum32(1, 0, 2, 0));
395 EXPECT_EQ(SP32(67, 0), getSum32(7, 0, 60, 0));
398 EXPECT_EQ(SP32(3, 0), getSum32(1, 0, 1, 1));
399 EXPECT_EQ(SP32(4, 0), getSum32(2, 0, 1, 1));
402 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 32, 1, 0));
403 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, -32, 1, 0));
406 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 32, 1, 1));
407 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -32, 1, -1));
410 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, UINT32_MAX, 0));
413 EXPECT_EQ(SP32(1, 0), getSum32(1, 0, 0, 0));
414 EXPECT_EQ(SP32(8, -3), getSum32(8, -3, 0, 0));
415 EXPECT_EQ(SP32(UINT32_MAX, 0), getSum32(UINT32_MAX, 0, 0, 0));
416 EXPECT_EQ(SP32(3, 0), getSum32(2, 0, 1, 0));
417 EXPECT_EQ(SP32(67, 0), getSum32(60, 0, 7, 0));
418 EXPECT_EQ(SP32(3, 0), getSum32(1, 1, 1, 0));
419 EXPECT_EQ(SP32(4, 0), getSum32(1, 1, 2, 0));
420 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, 1, 32));
421 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, 0, 1, -32));
422 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 1, 1, 32));
423 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -1, 1, -32));
424 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(UINT32_MAX, 0, 1, 0));