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

References

unittests/Support/ScaledNumberTest.cpp
  257   EXPECT_EQ(0, getLgCeiling(UINT32_C(1), 0));
  258   EXPECT_EQ(1, getLgCeiling(UINT32_C(1), 1));
  259   EXPECT_EQ(1, getLgCeiling(UINT32_C(2), 0));
  260   EXPECT_EQ(3, getLgCeiling(UINT32_C(1), 3));
  261   EXPECT_EQ(3, getLgCeiling(UINT32_C(7), 0));
  262   EXPECT_EQ(3, getLgCeiling(UINT32_C(8), 0));
  263   EXPECT_EQ(3, getLgCeiling(UINT32_C(64), -3));
  264   EXPECT_EQ(4, getLgCeiling(UINT32_C(9), 0));
  265   EXPECT_EQ(32, getLgCeiling(UINT32_MAX, 0));
  266   EXPECT_EQ(32, getLgCeiling((UINT32_MAX >> 1) + 2, 0));
  267   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), -1));
  268   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 0));
  269   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 1));
  271   EXPECT_EQ(0, getLgCeiling(UINT64_C(1), 0));
  272   EXPECT_EQ(1, getLgCeiling(UINT64_C(1), 1));
  273   EXPECT_EQ(1, getLgCeiling(UINT64_C(2), 0));
  274   EXPECT_EQ(3, getLgCeiling(UINT64_C(1), 3));
  275   EXPECT_EQ(3, getLgCeiling(UINT64_C(7), 0));
  276   EXPECT_EQ(3, getLgCeiling(UINT64_C(8), 0));
  277   EXPECT_EQ(3, getLgCeiling(UINT64_C(64), -3));
  278   EXPECT_EQ(4, getLgCeiling(UINT64_C(9), 0));
  279   EXPECT_EQ(64, getLgCeiling((UINT64_MAX >> 1) + 2, 0));
  280   EXPECT_EQ(64, getLgCeiling(UINT64_MAX, 0));
  281   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), -1));
  282   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), 0));
  283   EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), 1));