reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Support/ScaledNumberTest.cpp
  135   EXPECT_EQ(SP32(0, 0), getQuotient32(0, 0));
  136   EXPECT_EQ(SP32(0, 0), getQuotient32(0, 1));
  137   EXPECT_EQ(SP32(0, 0), getQuotient32(0, 73));
  138   EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(1, 0));
  139   EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(6, 0));
  142   EXPECT_EQ(SP32(1u << 31, -31), getQuotient32(1, 1));
  143   EXPECT_EQ(SP32(1u << 31, -30), getQuotient32(2, 1));
  144   EXPECT_EQ(SP32(1u << 31, -33), getQuotient32(4, 16));
  145   EXPECT_EQ(SP32(7u << 29, -29), getQuotient32(7, 1));
  146   EXPECT_EQ(SP32(7u << 29, -30), getQuotient32(7, 2));
  147   EXPECT_EQ(SP32(7u << 29, -33), getQuotient32(7, 16));
  150   EXPECT_EQ(SP32(3u << 30, -30), getQuotient32(9, 3));
  151   EXPECT_EQ(SP32(9u << 28, -28), getQuotient32(63, 7));
  154   EXPECT_EQ(SP32(0xaaaaaaab, -33), getQuotient32(1, 3));
  155   EXPECT_EQ(SP32(0xd5555555, -31), getQuotient32(5, 3));